We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b320be3 commit 8d42efbCopy full SHA for 8d42efb
src/components/ThemeProvider.tsx
@@ -1,5 +1,4 @@
1
import React from "react";
2
-import { ThemeProvider as StyledThemeProvider } from "styled-components";
3
import { PartialDeep } from "type-fest";
4
import useDarkMode from "use-dark-mode";
5
@@ -55,11 +54,7 @@ export const ThemeProvider = (props: {
55
54
}) => {
56
const { children, theme: providedTheme, dark } = props;
57
const theme = providedTheme ?? defaultTheme;
58
- return (
59
- <StyledThemeProvider theme={dark ? theme.dark : theme.light}>
60
- {children}
61
- </StyledThemeProvider>
62
- );
+ return { children };
63
};
64
65
export const getThemeValue = (key: keyof Palette) => {
0 commit comments