Skip to content

Commit 65f711a

Browse files
committed
fix(web): add explicit children typing to comply with react 18 types
1 parent a7fcf5c commit 65f711a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/src/context/StyledComponentsProvider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { ToggleThemeProvider } from "hooks/useToggleThemeContext";
55
import { GlobalStyle } from "styles/global-style";
66
import { lightTheme, darkTheme } from "styles/themes";
77

8-
const StyledComponentsProvider: React.FC = ({ children }) => {
8+
const StyledComponentsProvider: React.FC<{
9+
children: React.ReactNode;
10+
}> = ({ children }) => {
911
const [theme, setTheme] = useLocalStorage<string>("theme", "light");
1012
const toggleTheme = () => {
1113
if (theme === "light") setTheme("dark");

0 commit comments

Comments
 (0)