From c43784111e5c9f458877445e052fb79d84feb7d2 Mon Sep 17 00:00:00 2001 From: Harlan Sun <1249413181@qq.com> Date: Tue, 7 May 2024 01:21:31 +0800 Subject: [PATCH] chore: code review --- src/app/layout.tsx | 2 +- src/components/ClaimReward/index.tsx | 25 ------ src/components/Header/NavTabs.tsx | 4 +- src/components/Header/NavTabsMobile.tsx | 2 +- src/components/Header/ProfileInfo.tsx | 24 ------ src/components/ProjectDetailCard/index.tsx | 7 +- src/components/StakeCard/index.tsx | 76 +++++++++---------- .../StakeTokenInput/SelectLockTime.tsx | 40 ---------- .../StakeModal/StakeTokenInput/Stake.tsx | 46 ++++------- .../StakeModal/StakeTokenInput/UnStake.tsx | 35 --------- src/components/StakeTokenInfo/index.tsx | 41 ---------- src/constants/index.ts | 8 +- 12 files changed, 64 insertions(+), 246 deletions(-) delete mode 100644 src/components/ClaimReward/index.tsx delete mode 100644 src/components/Header/ProfileInfo.tsx delete mode 100644 src/components/StakeModal/StakeTokenInput/SelectLockTime.tsx delete mode 100644 src/components/StakeModal/StakeTokenInput/UnStake.tsx delete mode 100644 src/components/StakeTokenInfo/index.tsx diff --git a/src/app/layout.tsx b/src/app/layout.tsx index aa49342..aacf5ba 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -21,7 +21,7 @@ export default function RootLayout({ }>) { return ( - +
{children}
diff --git a/src/components/ClaimReward/index.tsx b/src/components/ClaimReward/index.tsx deleted file mode 100644 index c9f80e3..0000000 --- a/src/components/ClaimReward/index.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import SLNLogo from '@/assets/logos/sln-network.svg'; - -export function ClaimReward() { - return ( -
-
-
- -
SLN
-
-
1,300.0002
-
-
-
Reward
-
$ 23.00
-
- -
- ); -} diff --git a/src/components/Header/NavTabs.tsx b/src/components/Header/NavTabs.tsx index c4ae890..4a7e8af 100644 --- a/src/components/Header/NavTabs.tsx +++ b/src/components/Header/NavTabs.tsx @@ -11,14 +11,14 @@ const navigation = [ { name: 'About', path: '/about' }, ]; -export interface NavigationHeaderProps {} +export interface NavigationHeaderProps { } export function NavTabs() { const pathname = usePathname(); return (