From 4192cc1b5d1e2951963457516de0f9fe668c3b9a Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> Date: Mon, 3 Mar 2025 19:13:53 +0100 Subject: Improve more the UI --- src/pages/StopList.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/pages/StopList.tsx') diff --git a/src/pages/StopList.tsx b/src/pages/StopList.tsx index 2351b51..72cccda 100644 --- a/src/pages/StopList.tsx +++ b/src/pages/StopList.tsx @@ -5,6 +5,18 @@ import Fuse from "fuse.js"; const sdp = new StopDataProvider(); +const placeholders = [ + "Urzaiz", + "Gran Vía", + "Castelao", + "García Barbón", + "Valladares", + "Florida", + "Pizarro", + "Estrada Madrid", + "Sanjurjo Badía" +]; + export function StopList() { const [data, setData] = useState(null) const [searchResults, setSearchResults] = useState(null); @@ -36,6 +48,8 @@ export function StopList() { if (data === null) return

Loading...

+ const randomPlaceholder = placeholders[Math.floor(Math.random() * placeholders.length)]; + return (

UrbanoVigo Web

@@ -43,9 +57,9 @@ export function StopList() {
- +
-- cgit v1.3