From 4df609f1f55f7889dbc304c82bb73dbee2d4ed3a Mon Sep 17 00:00:00 2001 From: thislight Date: Fri, 27 Dec 2024 22:24:19 +0800 Subject: [PATCH] Settings: use AppTopBar --- src/settings/Language.tsx | 18 +++++++----------- src/settings/Motions.tsx | 12 ++++-------- src/settings/Region.tsx | 20 ++++++++------------ src/settings/Settings.tsx | 18 +++++++----------- 4 files changed, 26 insertions(+), 42 deletions(-) diff --git a/src/settings/Language.tsx b/src/settings/Language.tsx index b76495f..4a72cb1 100644 --- a/src/settings/Language.tsx +++ b/src/settings/Language.tsx @@ -25,6 +25,7 @@ import type { Template } from "@solid-primitives/i18n"; import { useStore } from "@nanostores/solid"; import { $settings } from "./stores"; import { useNavigator } from "~platform/StackedRouter"; +import AppTopBar from "~material/AppTopBar"; const ChooseLang: Component = () => { const { pop } = useNavigator(); @@ -54,17 +55,12 @@ const ChooseLang: Component = () => { return ( - - - - - {t("Choose Language")} - - + + + + + {t("Choose Language")} + } > { const {pop} = useNavigator(); @@ -31,17 +32,12 @@ const Motions: Component = () => { return ( - - + + {t("motions")} - - + } > { - const {pop} = useNavigator(); + const { pop } = useNavigator(); const [t] = createTranslator( () => import("./i18n/generic.json"), (code) => @@ -49,17 +50,12 @@ const ChooseRegion: Component = () => { return ( - - - - - {t("Choose Region")} - - + + + + + {t("Choose Region")} + } > { return ( - - - - - {t("Settings")} - - + + + + + {t("Settings")} + } >