diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-25 02:37:21 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-25 02:37:21 +0100 |
| commit | 0197a19973940d40a373b8aa68b2791391149cef (patch) | |
| tree | 36ac440484dabaebd8b17089c56f984e64601f45 /src/frontend/app/routes/settings.tsx | |
| parent | 843cfb208849d652da16e943247057cf5a251254 (diff) | |
Implement selecting stop layers to display
Diffstat (limited to 'src/frontend/app/routes/settings.tsx')
| -rw-r--r-- | src/frontend/app/routes/settings.tsx | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/frontend/app/routes/settings.tsx b/src/frontend/app/routes/settings.tsx index f51b2e9..e7fdffa 100644 --- a/src/frontend/app/routes/settings.tsx +++ b/src/frontend/app/routes/settings.tsx @@ -16,6 +16,12 @@ export default function Settings() { setShowTraffic, showCameras, setShowCameras, + showBusStops, + setShowBusStops, + showCoachStops, + setShowCoachStops, + showTrainStops, + setShowTrainStops, } = useApp(); const THEMES = [ @@ -120,6 +126,44 @@ export default function Settings() { className="w-5 h-5 rounded border-border text-primary focus:ring-primary/50" /> </label> + + <hr className="border-border" /> + <label className="flex items-center justify-between p-4 rounded-lg border border-border bg-surface cursor-pointer hover:bg-surface/50 transition-colors"> + <span className="text-text font-medium"> + {t("about.show_stops_bus", "Mostrar paradas de autobús")} + </span> + <input + type="checkbox" + checked={showBusStops} + onChange={(e) => setShowBusStops(e.target.checked)} + className="w-5 h-5 rounded border-border text-primary focus:ring-primary/50" + /> + </label> + <label className="flex items-center justify-between p-4 rounded-lg border border-border bg-surface cursor-pointer hover:bg-surface/50 transition-colors"> + <span className="text-text font-medium"> + {t( + "about.show_stops_coach", + "Mostrar paradas de autobús interurbano" + )} + </span> + <input + type="checkbox" + checked={showCoachStops} + onChange={(e) => setShowCoachStops(e.target.checked)} + className="w-5 h-5 rounded border-border text-primary focus:ring-primary/50" + /> + </label> + <label className="flex items-center justify-between p-4 rounded-lg border border-border bg-surface cursor-pointer hover:bg-surface/50 transition-colors"> + <span className="text-text font-medium"> + {t("about.show_stops_train", "Mostrar paradas de tren")} + </span> + <input + type="checkbox" + checked={showTrainStops} + onChange={(e) => setShowTrainStops(e.target.checked)} + className="w-5 h-5 rounded border-border text-primary focus:ring-primary/50" + /> + </label> </div> </section> |
