Skip to content

Commit

Permalink
Merge pull request #6 from chhw130/dev
Browse files Browse the repository at this point in the history
fix(colormode) : default light mode
  • Loading branch information
chhw130 authored Dec 13, 2023
2 parents 787b534 + 8cf5dcb commit 845cc9e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/app/ChakraLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ const ChakraProvider = dynamic(() =>
// });

export function ChakraLayout({ children }: { children: React.ReactNode }) {
const config: ThemeConfig = {
initialColorMode: "light",
useSystemColorMode: false,
};

// const [mount, setMount] = useState(false);

// useLayoutEffect(() => {
Expand All @@ -34,15 +29,8 @@ export function ChakraLayout({ children }: { children: React.ReactNode }) {
// return <></>;
// }

const theme = extendTheme({
config,
// fonts: {
// body: BMJUA.style.fontFamily,
// },
});

return (
<ChakraProvider theme={theme}>
<ChakraProvider>
<ColorModeScript initialColorMode="system" />
<CacheProvider>{children}</CacheProvider>
</ChakraProvider>
Expand Down

0 comments on commit 845cc9e

Please sign in to comment.