🔗 feat: add navigation to topup page from balance cards

- Add click-to-navigate functionality on balance cards in both Detail and TokensTable components
- Implement navigation to '/console/topup' when clicking on current balance
- Add useNavigate hook and necessary imports
- Keep consistent navigation behavior across components

Components affected:
- web/src/pages/Detail/index.js
- web/src/components/TokensTable.js
This commit is contained in:
Apple\Apple
2025-05-26 23:30:26 +08:00
parent a7c79a9e34
commit d542b529cb
3 changed files with 10 additions and 3 deletions

View File

@@ -1141,7 +1141,7 @@ const LogsTable = () => {
size='large'
style={{
padding: 15,
borderRadius: '8px',
borderRadius: '9999px',
fontWeight: 500,
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)',
}}
@@ -1153,7 +1153,7 @@ const LogsTable = () => {
size='large'
style={{
padding: 15,
borderRadius: '8px',
borderRadius: '9999px',
fontWeight: 500,
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)',
}}
@@ -1167,7 +1167,7 @@ const LogsTable = () => {
padding: 15,
border: 'none',
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)',
borderRadius: '8px',
borderRadius: '9999px',
fontWeight: 500,
}}
>