Skip to content

Commit 2afbe9e

Browse files
committed
fix: nested anchor tag in chain selector
1 parent 6b65192 commit 2afbe9e

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

src/app/indexPage.tsx

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -67,31 +67,26 @@ const IndexPage = ({ chainProfiles }: IndexPageProps) => {
6767
>
6868
{chainProfiles.map((chainProfile) => {
6969
return (
70-
<Link
70+
<Button
7171
key={chainProfile.identifier}
72+
sx={{
73+
display: "flex",
74+
justifyContent: "center",
75+
padding: "1.75rem",
76+
height: "6rem",
77+
width: "18rem",
78+
}}
79+
disableTouchRipple
80+
component={Link}
7281
href={`/${chainProfile.identifier}`}
73-
style={{ width: "100%" }}
74-
passHref
82+
onClick={() => setChainLoading(chainProfile.identifier)}
7583
>
76-
<Button
77-
sx={{
78-
display: "flex",
79-
justifyContent: "center",
80-
padding: "1.75rem",
81-
height: "6rem",
82-
width: "18rem",
83-
}}
84-
disableTouchRipple
85-
component={"a"}
86-
onClick={() => setChainLoading(chainProfile.identifier)}
87-
>
88-
{chainLoading !== chainProfile.identifier ? (
89-
<ChainLogo chainProfile={chainProfile} />
90-
) : (
91-
<ChainLogoSpinner chainProfile={chainProfile} />
92-
)}
93-
</Button>
94-
</Link>
84+
{chainLoading !== chainProfile.identifier ? (
85+
<ChainLogo chainProfile={chainProfile} />
86+
) : (
87+
<ChainLogoSpinner chainProfile={chainProfile} />
88+
)}
89+
</Button>
9590
);
9691
})}
9792
</Box>

0 commit comments

Comments
 (0)