Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Commit 98225fb

Browse files
authored
Fix: links in the Dashboard Overview (#3862)
1 parent 9134dde commit 98225fb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/components/Dashboard/Overview/Overview.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { ReactElement, useMemo } from 'react'
22
import { useSelector } from 'react-redux'
3+
import { Link } from 'react-router-dom'
34
import styled from 'styled-components'
45
import { Text, Identicon } from '@gnosis.pm/safe-react-components'
5-
import { Box, Grid, Link } from '@material-ui/core'
6+
import { Box, Grid } from '@material-ui/core'
67
import { Skeleton } from '@material-ui/lab'
78

89
import { currentSafeLoaded, currentSafeWithNames } from 'src/logic/safe/store/selectors'
@@ -30,9 +31,7 @@ const StyledText = styled(Text)`
3031
`
3132

3233
const StyledLink = styled(Link)`
33-
&:hover {
34-
text-decoration: none;
35-
}
34+
text-decoration: none;
3635
`
3736

3837
const NetworkLabelContainer = styled.div`
@@ -126,7 +125,7 @@ const Overview = (): ReactElement => {
126125

127126
<Grid container>
128127
<Grid item xs={3}>
129-
<StyledLink href={assetsLink}>
128+
<StyledLink to={assetsLink}>
130129
<Text color="inputDefault" size="lg">
131130
Tokens
132131
</Text>
@@ -135,7 +134,7 @@ const Overview = (): ReactElement => {
135134
</Grid>
136135

137136
<Grid item xs={3}>
138-
<StyledLink href={nftsLink}>
137+
<StyledLink to={nftsLink}>
139138
<Text color="inputDefault" size="lg">
140139
NFTs
141140
</Text>
@@ -145,7 +144,7 @@ const Overview = (): ReactElement => {
145144

146145
<Grid item xs={6}>
147146
<Box display="flex" height={1} alignItems="flex-end" justifyContent="flex-end">
148-
<StyledLink href={assetsLink}>
147+
<StyledLink to={assetsLink}>
149148
<Button size="medium" variant="contained" color="primary">
150149
View Assets
151150
</Button>

0 commit comments

Comments
 (0)