mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 15:05:35 +00:00
chore: init mandine config
This commit is contained in:
20
inertia/components/layouts/mantine/_mantine_base_layout.tsx
Normal file
20
inertia/components/layouts/mantine/_mantine_base_layout.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ColorSchemeScript, createTheme, MantineProvider } from '@mantine/core';
|
||||
import dayjs from 'dayjs';
|
||||
import { ReactNode } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import '@mantine/core/styles.css';
|
||||
import '@mantine/spotlight/styles.css';
|
||||
|
||||
const theme = createTheme({});
|
||||
|
||||
export default function BaseLayout({ children }: { children: ReactNode }) {
|
||||
const { i18n } = useTranslation();
|
||||
dayjs.locale(i18n.language);
|
||||
return (
|
||||
<>
|
||||
<ColorSchemeScript />
|
||||
<MantineProvider theme={theme}>{children}</MantineProvider>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user