From 3aa6eee0f54dec3e4f92be2ad335a04145ac4db8 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> Date: Mon, 3 Mar 2025 18:54:35 +0100 Subject: Improve the UI --- src/components/StopItem.tsx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/components/StopItem.tsx (limited to 'src/components/StopItem.tsx') diff --git a/src/components/StopItem.tsx b/src/components/StopItem.tsx new file mode 100644 index 0000000..6b48899 --- /dev/null +++ b/src/components/StopItem.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import { Link } from 'react-router'; +import { Stop } from '../data/StopDataProvider'; +import LineIcon from './LineIcon'; + +interface StopItemProps { + stop: Stop; +} + +const StopItem: React.FC = ({ stop }) => { + return ( +
  • + + ({stop.stopId}) {stop.name} +
    + {stop.lines?.map(line => )} +
    + +
  • + ); +}; + +export default StopItem; \ No newline at end of file -- cgit v1.3