feat: add new language switcher

This commit is contained in:
Sonny
2024-11-01 00:56:19 +01:00
committed by Sonny
parent bce00c7855
commit 1da9f0baf4
2 changed files with 20 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import {
import { useDisclosure } from '@mantine/hooks';
import { useTranslation } from 'react-i18next';
import ExternalLink from '~/components/common/external_link';
import { MantineLanguageSwitcher } from '~/components/common/mantine_language_switcher';
import { MantineThemeSwitcher } from '~/components/common/mantine_theme_switcher';
import classes from './mobile_navbar.module.css';
@@ -43,10 +44,12 @@ export default function MantineNavbar() {
<Group gap="xs">
<MantineThemeSwitcher />
<MantineLanguageSwitcher />
<Button
component={Link}
href={route('auth.login').url}
visibleFrom="sm"
w={110}
>
{t('login')}
</Button>