Update project structure

This commit is contained in:
Hazem Krimi
2022-01-08 19:06:43 +01:00
parent 574f0b4d63
commit 79279e4706
20 changed files with 78 additions and 104 deletions
+1 -12
View File
@@ -1,11 +1,6 @@
import { FC, useContext } from 'react';
import { createGlobalStyle } from 'styled-components';
import { DarkModeContext } from '../components/DarkMode';
interface Props {
dark: boolean;
}
const Global = createGlobalStyle<Props>`
const GlobalStyles = createGlobalStyle`
* {
margin: 0;
padding: 0;
@@ -71,10 +66,4 @@ const Global = createGlobalStyle<Props>`
}
`;
const GlobalStyles: FC = () => {
const { dark } = useContext(DarkModeContext);
return <Global dark={dark} />;
};
export default GlobalStyles;