aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Home.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-08-30 16:37:03 +0200
committerAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-08-30 16:37:03 +0200
commit663a2a3ff10bf55498a6c8731b1a32e9f98d7343 (patch)
tree0a302a898fcd21d46649ef47d71363f0f4069b0c /src/pages/Home.tsx
parentf1db052266f254dec65435a54702ca6e2a74a8cd (diff)
Replace <a> to links
Diffstat (limited to 'src/pages/Home.tsx')
-rw-r--r--src/pages/Home.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index f92847a..5070e5f 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -1,4 +1,4 @@
-import { useNavigate } from "react-router-dom";
+import { Link, useNavigate } from "react-router-dom";
import useSWR from "swr";
interface Stop {
@@ -75,9 +75,9 @@ export function Home() {
<ul>
{data?.sort((a, b) => a.stopId - b.stopId).map((stop: Stop) => (
<li key={stop.stopId}>
- <a href={`/${stop.stopId}`}>
+ <Link to={`/${stop.stopId}`}>
({stop.stopId}) {stop.name} - {stop.lines?.join(', ')}
- </a>
+ </Link>
</li>
))}
</ul>