diff options
Diffstat (limited to 'src/pages/Home.tsx')
| -rw-r--r-- | src/pages/Home.tsx | 6 |
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> |
