Skip to content

Commit 8d42efb

Browse files
committed
remove default theme provider
1 parent b320be3 commit 8d42efb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/ThemeProvider.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import { ThemeProvider as StyledThemeProvider } from "styled-components";
32
import { PartialDeep } from "type-fest";
43
import useDarkMode from "use-dark-mode";
54

@@ -55,11 +54,7 @@ export const ThemeProvider = (props: {
5554
}) => {
5655
const { children, theme: providedTheme, dark } = props;
5756
const theme = providedTheme ?? defaultTheme;
58-
return (
59-
<StyledThemeProvider theme={dark ? theme.dark : theme.light}>
60-
{children}
61-
</StyledThemeProvider>
62-
);
57+
return { children };
6358
};
6459

6560
export const getThemeValue = (key: keyof Palette) => {

0 commit comments

Comments
 (0)