mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Override styled components default theme
This commit is contained in:
+12
-7
@@ -4,10 +4,11 @@ import Nav from '../components/Nav';
|
||||
import DarkMode from '../components/DarkMode';
|
||||
import Container from '../components/Container';
|
||||
import GlobalStyles from '../components/GlobalStyles';
|
||||
import Theme from '../components/Theme';
|
||||
|
||||
const App = ({ Component, pageProps }: AppProps) => {
|
||||
return (
|
||||
<DarkMode>
|
||||
<>
|
||||
<Head>
|
||||
<link rel='preconnect' href='https://fonts.gstatic.com' />
|
||||
<link
|
||||
@@ -16,12 +17,16 @@ const App = ({ Component, pageProps }: AppProps) => {
|
||||
/>
|
||||
<title>Hazem Krimi</title>
|
||||
</Head>
|
||||
<GlobalStyles />
|
||||
<Container>
|
||||
<Nav />
|
||||
<Component {...pageProps} />
|
||||
</Container>
|
||||
</DarkMode>
|
||||
<DarkMode>
|
||||
<Theme>
|
||||
<GlobalStyles />
|
||||
<Container>
|
||||
<Nav />
|
||||
<Component {...pageProps} />
|
||||
</Container>
|
||||
</Theme>
|
||||
</DarkMode>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user