diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 011497b..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh - -. "$(dirname -- "$0")/_/husky.sh" -npx lint-staged diff --git a/apps/web/public/logo.svg b/apps/web/public/logo.svg index c22ed8c..5174b28 100644 --- a/apps/web/public/logo.svg +++ b/apps/web/public/logo.svg @@ -1,3 +1 @@ - - - + \ No newline at end of file diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx new file mode 100644 index 0000000..bc2cb0f --- /dev/null +++ b/apps/web/src/app/page.tsx @@ -0,0 +1,30 @@ +/* eslint-disable react/no-unescaped-entities */ +// The not-found file is used to render UI when the notFound function +// is thrown within a route segment. Along with serving a custom UI, +// Next.js will also return a 404 HTTP status code. + +export default function page() { + return ( +
+
+
+
+ + + +
+
+
+
+ ); +} diff --git a/apps/web/src/components/layout/components/NavBar/components/WalletButton/index.tsx b/apps/web/src/components/layout/components/NavBar/components/WalletButton/index.tsx index 3aa299e..3ee0833 100644 --- a/apps/web/src/components/layout/components/NavBar/components/WalletButton/index.tsx +++ b/apps/web/src/components/layout/components/NavBar/components/WalletButton/index.tsx @@ -63,8 +63,7 @@ export const WalletButton: React.FC = () => { ) : ( <> - + ); }; diff --git a/apps/web/src/constants/navigations/index.ts b/apps/web/src/constants/navigations/index.ts index 9b844a9..52bda64 100644 --- a/apps/web/src/constants/navigations/index.ts +++ b/apps/web/src/constants/navigations/index.ts @@ -1,6 +1,5 @@ enum Path { ROOT = '/', - BORROW = '/borrow', MARKETS = '/markets', } @@ -13,8 +12,7 @@ export const config = { export const URL = 'https://example.com'; export const navItems = [ - { name: 'Earn', path: Path.ROOT }, - { name: 'Borrow', path: Path.BORROW }, + { name: 'Home', path: Path.ROOT }, { name: 'Markets', path: Path.MARKETS }, ]; diff --git a/apps/web/src/providers/wagmi/index.tsx b/apps/web/src/providers/wagmi/index.tsx index 27c0d3e..ce8aff6 100644 --- a/apps/web/src/providers/wagmi/index.tsx +++ b/apps/web/src/providers/wagmi/index.tsx @@ -4,7 +4,6 @@ import { SUPPORTED_CHAINS } from 'config/chain'; import { PLATFORM } from 'config/setting'; import useConfig from 'hooks/config/useConfig'; import { useMemo } from 'react'; -import { INetwork } from 'types/common'; import { WagmiConfig, configureChains, createClient } from 'wagmi'; import { CoinbaseWalletConnector } from 'wagmi/connectors/coinbaseWallet'; import { InjectedConnector } from 'wagmi/connectors/injected'; @@ -15,10 +14,17 @@ import { alchemyProvider } from 'wagmi/providers/alchemy'; import { infuraProvider } from 'wagmi/providers/infura'; import { publicProvider } from 'wagmi/providers/public'; + type TProps = { children: React.ReactNode; }; +export interface INetwork { + chainId: number; + name: string; + explorerUrl: string; +} + const alchemyId = process.env.NEXT_PUBLIC_ALCHEMY_ID || ''; const infuraId = process.env.NEXT_PUBLIC_INFURA_ID || ''; @@ -85,4 +91,4 @@ const WagmiProvider: React.FC = ({ children }) => { return {children}; }; -export default WagmiProvider; +export default WagmiProvider; \ No newline at end of file