From f40fe56572989a1aca580e33e4bbf4f4022d5969 Mon Sep 17 00:00:00 2001 From: 7heMech <83923848+7heMech@users.noreply.github.com> Date: Thu, 13 Nov 2025 01:40:34 +0200 Subject: [PATCH] Add new section with theme and locale pickers. --- frontend/src/components/LocalePicker.tsx | 11 +++++++++-- frontend/src/components/SiteHeader.tsx | 17 +++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/LocalePicker.tsx b/frontend/src/components/LocalePicker.tsx index aaa1dc53..5ee44c1e 100644 --- a/frontend/src/components/LocalePicker.tsx +++ b/frontend/src/components/LocalePicker.tsx @@ -5,7 +5,11 @@ import { useTheme } from "src/hooks"; import { changeLocale, getFlagCodeForLocale, localeOptions, T } from "src/locale"; import styles from "./LocalePicker.module.css"; -function LocalePicker() { +interface Props { + menuAlign?: "start" | "end"; +} + +function LocalePicker({ menuAlign = "start" }: Props) { const { locale, setLocale } = useLocaleState(); const { getTheme } = useTheme(); @@ -23,7 +27,10 @@ function LocalePicker() { -
+
{localeOptions.map((item) => { return (
+
+
e.stopPropagation()}> +
+
+
{currentUser?.nickname}
+
+ +
+
+
+ + +
+
+
+
+