From c7b996857bf96f191a14f298a6566cf4b48b5402 Mon Sep 17 00:00:00 2001 From: Alexis Date: Mon, 5 Jun 2023 12:38:17 +0100 Subject: [PATCH] completes the rerouting for stacking --- src/components/LeftPanel.tsx | 163 ++++++++++++++++-- src/components/MainPage.tsx | 20 ++- .../stacking/dashboard/DashboardStacking.tsx | 5 + .../stacking/profile/ProfileStacking.tsx | 5 + src/css/navbars/styles.css | 10 +- 5 files changed, 176 insertions(+), 27 deletions(-) create mode 100644 src/components/stacking/dashboard/DashboardStacking.tsx create mode 100644 src/components/stacking/profile/ProfileStacking.tsx diff --git a/src/components/LeftPanel.tsx b/src/components/LeftPanel.tsx index 8a6daa5..e3f6427 100644 --- a/src/components/LeftPanel.tsx +++ b/src/components/LeftPanel.tsx @@ -44,6 +44,8 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { const location = useLocation(); + console.log('location-', location.pathname.slice(0, 8)); + const handleClickMiningPoolMenuItem = () => { setOpenMiningPoolMenu(!openMiningPoolMenu); }; @@ -122,13 +124,108 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { component="nav" aria-labelledby="nested-list-subheader" > */} +
+ + + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + + + {/* */} +
- + @@ -144,11 +241,11 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { {currentRole !== 'Viewer' && (
- + @@ -166,7 +263,7 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { <>
- + @@ -190,11 +287,16 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { unmountOnExit > - + @@ -207,14 +309,19 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { - + @@ -231,7 +338,7 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => {
- + @@ -255,11 +362,16 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { unmountOnExit > - + @@ -271,11 +383,16 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { - + @@ -287,11 +404,16 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { - + @@ -303,11 +425,16 @@ const LeftPanel = ({ currentTheme }: ConnectWalletProps) => { - + diff --git a/src/components/MainPage.tsx b/src/components/MainPage.tsx index efa530f..f18ffe6 100644 --- a/src/components/MainPage.tsx +++ b/src/components/MainPage.tsx @@ -11,6 +11,8 @@ import VotingJoiners from './appMenuSections/voting/VotingJoiners'; import VotingRemovals from './appMenuSections/voting/VotingRemovals'; import VotingNotifier from './appMenuSections/voting/VotingNotifier'; import MinerProfileDetails from './appMenuSections/profile/MinerProfileDetails'; +import DashboardStacking from './stacking/dashboard/DashboardStacking'; +import ProfileStacking from './stacking/profile/ProfileStacking'; const MainPage = () => { return ( @@ -24,15 +26,17 @@ const MainPage = () => {
} /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> } /> + } /> + } /> } />
diff --git a/src/components/stacking/dashboard/DashboardStacking.tsx b/src/components/stacking/dashboard/DashboardStacking.tsx new file mode 100644 index 0000000..58b61fe --- /dev/null +++ b/src/components/stacking/dashboard/DashboardStacking.tsx @@ -0,0 +1,5 @@ +const DashboardStacking = () => { + return
stacking dashboard
; +}; + +export default DashboardStacking; diff --git a/src/components/stacking/profile/ProfileStacking.tsx b/src/components/stacking/profile/ProfileStacking.tsx new file mode 100644 index 0000000..040c779 --- /dev/null +++ b/src/components/stacking/profile/ProfileStacking.tsx @@ -0,0 +1,5 @@ +const ProfileStacking = () => { + return
stacking profile
; +}; + +export default ProfileStacking; diff --git a/src/css/navbars/styles.css b/src/css/navbars/styles.css index 47bdc48..a6616c4 100644 --- a/src/css/navbars/styles.css +++ b/src/css/navbars/styles.css @@ -45,6 +45,14 @@ display: block !important; } +.padding-left-sidebar-main-sections { + padding-left: 35px !important; +} + +.padding-left-sidebar-inner-sections { + padding-left: 60px !important; +} + @media screen and (max-width: 575px) { .navbar-sections-font-size span { font-size: 14px !important; @@ -53,6 +61,6 @@ @media screen and (min-width: 576px) and (max-width: 991px) { .navbar-sections-font-size span { - font-size: 18px !important; + font-size: 16px !important; } }