Skip to content

Commit

Permalink
Removed function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridsko committed Apr 26, 2023
1 parent 0adb53e commit 0968250
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pwa/src/styling/themeProvider/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@ import { Document } from "@utrecht/component-library-react/dist/css-module";
export const ThemeProvider = ({ children }: React.PropsWithChildren<{}>): JSX.Element => {
const [theme, setTheme] = React.useState<string>("rotterdam");

React.useEffect(() => {
const link = document.createElement("link");

link.type = "text/css";
link.rel = "stylesheet";
link.href = `/themes/${theme}.css`;

document.head.appendChild(link);

return () => {
document.head.removeChild(link);
};
}, [theme]);
const themeData = themes.find(({ value }) => value === theme);

return (
Expand Down

0 comments on commit 0968250

Please sign in to comment.