Skip to content

Commit b93bf27

Browse files
fix: update welcome to use React router link
1 parent 62597a4 commit b93bf27

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

app/components/Welcome.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Text,
99
} from "@mantine/core";
1010
import { useColorScheme } from "@mantine/hooks";
11+
import { Link } from "react-router";
1112
import logoDark from "~/assets/logo-dark.svg";
1213
import logoLight from "~/assets/logo-light.svg";
1314

@@ -35,14 +36,9 @@ export const Welcome: React.FC = () => {
3536
<List spacing="xs">
3637
{resources.map(({ href, text, icon }) => (
3738
<List.Item key={href} icon={icon}>
38-
<Anchor
39-
href={href}
40-
target="_blank"
41-
rel="noreferrer"
42-
c={isDark ? "blue.5" : "blue.7"}
43-
>
44-
{text}
45-
</Anchor>
39+
<Link to={href}>
40+
<Text c={isDark ? "blue.5" : "blue.7"}>{text}</Text>
41+
</Link>
4642
</List.Item>
4743
))}
4844
</List>

0 commit comments

Comments
 (0)