Skip to content

Commit 9226d1c

Browse files
committed
fix: mobile layouts
1 parent 4201226 commit 9226d1c

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

pages/safety-module.page.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ export default function Staking() {
159159
<Trans>Stake AAVE</Trans>
160160
</Typography>
161161
</StyledToggleButton>
162-
<StyledToggleButton value="gho" disabled={mode === 'gho'}>
163-
<Typography variant="subheader1">
164-
<Trans>sGHO</Trans>
165-
</Typography>
166-
</StyledToggleButton>
167162
<StyledToggleButton value="bpt" disabled={mode === 'bpt'}>
168163
<Typography variant="subheader1">
169164
<Trans>Stake ABPT</Trans>

src/layouts/MobileMenu.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,7 @@ export const MobileMenu = ({ open, setOpen, headerHeight }: MobileMenuProps) =>
9494
<Trans>Watch wallet</Trans>
9595
</ListItemText>
9696
</ListItem>
97-
<ListItem
98-
sx={{ color: '#F1F1F3' }}
99-
component={Link}
100-
href={'/staking'}
101-
onClick={() => setOpen(false)}
102-
>
103-
<ListItemText>
104-
<Trans>Safety Module</Trans>
105-
</ListItemText>
106-
</ListItem>
97+
10798
<ListItem
10899
sx={{ color: '#F1F1F3' }}
109100
component={Link}

src/layouts/components/NavItems.tsx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,35 @@ export const NavItems = ({ setOpen }: NavItemsProps) => {
112112
sx={{ width: '100%', p: 4 }}
113113
onClick={() => handleClick('Staking', true)}
114114
>
115-
<Trans>Umbrella</Trans>
115+
<Trans>Staking</Trans>
116116
</Typography>
117117
</>
118118
) : (
119119
<StakingMenu />
120120
)}
121121
</ListItem>
122122

123+
{md && (
124+
<ListItem
125+
sx={{
126+
width: { xs: '100%', md: 'unset' },
127+
mr: { xs: 0, md: 2 },
128+
}}
129+
disablePadding
130+
>
131+
<Typography
132+
component={Link}
133+
href={ROUTES.sGHO}
134+
variant="h2"
135+
color="#F1F1F3"
136+
sx={{ width: '100%', p: 4 }}
137+
onClick={() => handleClick('sGHO', true)}
138+
>
139+
<Trans>sGHO</Trans>
140+
</Typography>
141+
</ListItem>
142+
)}
143+
123144
{md && (
124145
<ListItem
125146
sx={{

src/locales/en/messages.po

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ msgstr "Unstake window"
10951095
msgid "Reload"
10961096
msgstr "Reload"
10971097

1098-
#: pages/safety-module.page.tsx
1098+
#: src/layouts/components/NavItems.tsx
10991099
#: src/modules/reserve-overview/Gho/SavingsGho.tsx
11001100
#: src/modules/reserve-overview/Gho/SavingsGho.tsx
11011101
#: src/modules/sGho/SGhoDepositPanel.tsx
@@ -1312,6 +1312,7 @@ msgid "Merkl rewards are claimed through the"
13121312
msgstr "Merkl rewards are claimed through the"
13131313

13141314
#: src/components/transactions/Stake/StakeActions.tsx
1315+
#: src/layouts/components/NavItems.tsx
13151316
#: src/layouts/components/StakingMenu.tsx
13161317
#: src/modules/umbrella/UmbrellaActions.tsx
13171318
#: src/modules/umbrella/UmbrellaHeader.tsx
@@ -2001,7 +2002,6 @@ msgstr "Amount to Bridge"
20012002
msgid "Please always be aware of your <0>Health Factor (HF)</0> when partially migrating a position and that your rates will be updated to V3 rates."
20022003
msgstr "Please always be aware of your <0>Health Factor (HF)</0> when partially migrating a position and that your rates will be updated to V3 rates."
20032004

2004-
#: src/layouts/components/NavItems.tsx
20052005
#: src/layouts/components/StakingMenu.tsx
20062006
#: src/layouts/components/StakingMenu.tsx
20072007
msgid "Umbrella"
@@ -2641,7 +2641,6 @@ msgstr "Borrowable"
26412641
#: src/layouts/components/NavItems.tsx
26422642
#: src/layouts/components/StakingMenu.tsx
26432643
#: src/layouts/components/StakingMenu.tsx
2644-
#: src/layouts/MobileMenu.tsx
26452644
#: src/modules/staking/StakingHeader.tsx
26462645
msgid "Safety Module"
26472646
msgstr "Safety Module"

0 commit comments

Comments
 (0)