mirror of
https://github.com/lordmathis/lemma.git
synced 2025-12-25 02:44:22 +00:00
Streamline theme management and improve AppearanceSettings component
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import React from 'react';
|
||||
import { MantineProvider, ColorSchemeScript } from '@mantine/core';
|
||||
import {
|
||||
MantineProvider,
|
||||
ColorSchemeScript,
|
||||
localStorageColorSchemeManager,
|
||||
} from '@mantine/core';
|
||||
import { Notifications } from '@mantine/notifications';
|
||||
import { ModalsProvider } from '@mantine/modals';
|
||||
import Layout from './components/layout/Layout';
|
||||
@@ -39,11 +43,18 @@ const AuthenticatedContent: React.FC<AuthenticatedContentProps> = () => {
|
||||
|
||||
type AppProps = object;
|
||||
|
||||
const colorSchemeManager = localStorageColorSchemeManager({
|
||||
key: 'mantine-color-scheme',
|
||||
});
|
||||
|
||||
const App: React.FC<AppProps> = () => {
|
||||
return (
|
||||
<>
|
||||
<ColorSchemeScript defaultColorScheme="light" />
|
||||
<MantineProvider defaultColorScheme="light">
|
||||
<MantineProvider
|
||||
defaultColorScheme="light"
|
||||
colorSchemeManager={colorSchemeManager}
|
||||
>
|
||||
<Notifications />
|
||||
<ModalsProvider>
|
||||
<AuthProvider>
|
||||
|
||||
Reference in New Issue
Block a user