diff --git a/src/components/header.tsx b/src/components/header.tsx index 111f185..9ef0292 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -18,6 +18,7 @@ import { import { useAuth } from "@/hooks/useAuth" import { useMainStore } from "@/hooks/useMainStore" import { useMediaQuery } from "@/hooks/useMediaQuery" +import { cn } from "@/lib/utils" import i18next from "i18next" import { LogOut, Settings, User2 } from "lucide-react" import { DateTime } from "luxon" @@ -72,7 +73,12 @@ export default function Header() { {!disableAnimatedMan && ( {"animated-man"} @@ -110,7 +116,7 @@ export default function Header() { - + {profile.username} diff --git a/src/components/install-commands.tsx b/src/components/install-commands.tsx index 42552ec..425692e 100644 --- a/src/components/install-commands.tsx +++ b/src/components/install-commands.tsx @@ -22,7 +22,7 @@ enum OSTypes { export const InstallCommandsMenu = forwardRef((props, ref) => { const [copy, setCopy] = useState(false) - const {data: settings} = useSettings() + const { data: settings } = useSettings() const { t } = useTranslation() const switchState = async (type: number) => { diff --git a/src/routes/login.tsx b/src/routes/login.tsx index 82a4226..215196d 100644 --- a/src/routes/login.tsx +++ b/src/routes/login.tsx @@ -42,7 +42,7 @@ function Login() { const { t } = useTranslation() return ( -
+
+
diff --git a/src/routes/settings.tsx b/src/routes/settings.tsx index aa9eb4c..5987f62 100644 --- a/src/routes/settings.tsx +++ b/src/routes/settings.tsx @@ -57,21 +57,21 @@ export default function SettingsPage() { resolver: zodResolver(settingFormSchema), defaultValues: config ? { - ...config, - language: config.language, - site_name: config.site_name || "", - user_template: - config.user_template || - Object.keys(config.frontend_templates.filter((t) => !t.is_admin) || {})[0] || - "user-dist", - } + ...config, + language: config.language, + site_name: config.site_name || "", + user_template: + config.user_template || + Object.keys(config.frontend_templates.filter((t) => !t.is_admin) || {})[0] || + "user-dist", + } : { - ip_change_notification_group_id: 0, - cover: 1, - site_name: "", - language: "", - user_template: "user-dist", - }, + ip_change_notification_group_id: 0, + cover: 1, + site_name: "", + language: "", + user_template: "user-dist", + }, resetOptions: { keepDefaultValues: false, }, @@ -167,7 +167,7 @@ export default function SettingsPage() { }} > - + @@ -219,15 +219,15 @@ export default function SettingsPage() { {!config?.frontend_templates?.find( (t) => t.path === field.value, )?.is_official && ( -
-
- {t("CommunityThemeWarning")} -
-
- {t("CommunityThemeDescription")} -
+
+
+ {t("CommunityThemeWarning")}
- )} +
+ {t("CommunityThemeDescription")} +
+
+ )} )} />