-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* π¦ [RUMF-1162] replace bumbag with mantine * π¦ [RUMF-1162] update react * π¨ [RUMF-1162] work around strict null check * π·οΈ [RUMF-1162] update @types * π¨ fix lint
- Loading branch information
1 parent
50f3844
commit 275f807
Showing
15 changed files
with
386 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,22 @@ | ||
import { Provider as BumbagProvider, Box, css } from 'bumbag' | ||
import { MantineProvider } from '@mantine/core' | ||
import { useColorScheme } from '@mantine/hooks' | ||
import React, { Suspense } from 'react' | ||
|
||
import { Panel } from './panel' | ||
|
||
const theme = { | ||
global: { | ||
fontSize: 14, | ||
styles: { | ||
base: css` | ||
body { | ||
min-height: 100vh; | ||
} | ||
`, | ||
}, | ||
}, | ||
modes: { | ||
enableLocalStorage: false, | ||
useSystemColorMode: true, | ||
}, | ||
} | ||
|
||
export function App() { | ||
const colorScheme = useColorScheme() | ||
|
||
return ( | ||
<BumbagProvider theme={theme}> | ||
<Suspense fallback={<Box padding="major-4" />}> | ||
<MantineProvider | ||
theme={{ | ||
colorScheme, | ||
}} | ||
withGlobalStyles | ||
> | ||
<Suspense fallback={<></>}> | ||
<Panel /> | ||
</Suspense> | ||
</BumbagProvider> | ||
</MantineProvider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.