aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes/settings.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/app/routes/settings.tsx')
-rw-r--r--src/frontend/app/routes/settings.tsx44
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>