Skip to content

Commit fcdd747

Browse files
authored
feat: add "Your Positions" header with a transactions link on the dashboard (#3104)
1 parent 468557c commit fcdd747

7 files changed

Lines changed: 34 additions & 6 deletions

File tree

‎pages/dashboard.page.tsx‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Trans } from '@lingui/macro';
2-
import { Box, Typography } from '@mui/material';
2+
import { Box, Button, Typography } from '@mui/material';
33
import { useEffect, useState } from 'react';
4+
import { Link, ROUTES } from 'src/components/primitives/Link';
45
import { StyledTxModalToggleButton } from 'src/components/StyledToggleButton';
56
import { StyledTxModalToggleGroup } from 'src/components/StyledToggleButtonGroup';
67
import { useRootStore } from 'src/store/root';
@@ -33,6 +34,25 @@ export default function Dashboard() {
3334
<DashboardTopPanel />
3435

3536
<ContentContainer>
37+
{currentAccount && (
38+
<Box
39+
sx={{
40+
display: 'flex',
41+
alignItems: 'center',
42+
justifyContent: 'space-between',
43+
gap: '1rem',
44+
mb: '1.5rem',
45+
}}
46+
>
47+
<Typography variant="h2" sx={{ color: 'fg-1' }}>
48+
<Trans>Your Positions</Trans>
49+
</Typography>
50+
<Button variant="outlined" component={Link} size="medium" href={ROUTES.history}>
51+
<Trans>View transactions</Trans>
52+
</Button>
53+
</Box>
54+
)}
55+
3656
{currentAccount && (
3757
<Box
3858
sx={{

‎src/locales/el/messages.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/locales/en/messages.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/locales/en/messages.po‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3556,6 +3556,10 @@ msgstr "Debt"
35563556
msgid "Learn more about the Ether.fi program"
35573557
msgstr "Learn more about the Ether.fi program"
35583558

3559+
#: pages/dashboard.page.tsx
3560+
msgid "View transactions"
3561+
msgstr "View transactions"
3562+
35593563
#: src/modules/staking/StakingPanel.tsx
35603564
#: src/modules/umbrella/helpers/StakingDropdown.tsx
35613565
msgid "Cooldown to unstake"
@@ -4114,6 +4118,10 @@ msgstr "Approve with"
41144118
msgid "PTs"
41154119
msgstr "PTs"
41164120

4121+
#: pages/dashboard.page.tsx
4122+
msgid "Your Positions"
4123+
msgstr "Your Positions"
4124+
41174125
#: src/layouts/components/LanguageSwitcher.tsx
41184126
msgid "Language"
41194127
msgstr "Language"

‎src/locales/es/messages.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/locales/fr/messages.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/utils/figmaColors.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export const figmaDark = {
256256
'surface-elevated': '#1E1E20',
257257
'table-bg': '#1A1919',
258258
// --- semantic / button (Figma collection) ---
259-
'button-bg-secondary': '#28282a',
259+
'button-bg-secondary': '#1e1e20',
260260
'button-hover-primary': 'rgba(0, 0, 0, 0.16)',
261261
'button-hover-secondary': 'rgba(255, 255, 255, 0.04)',
262262
'button-hover-tertiary': 'rgba(255, 255, 255, 0.06)',

0 commit comments

Comments
 (0)