mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Update project structure
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user