From 663a2a3ff10bf55498a6c8731b1a32e9f98d7343 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>
Date: Fri, 30 Aug 2024 16:37:03 +0200
Subject: Replace <a> to links

---
 src/pages/Home.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/pages/Home.tsx')

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>
-- 
cgit v1.3

