From 6d7b242e4679929227e24e33209e45cb6858ec34 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Tue, 13 Apr 2021 18:36:35 +0100 Subject: [PATCH] Put global styles in index --- src/App.tsx | 14 +++++--------- src/index.tsx | 2 ++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 91939c4..581006e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,16 +1,12 @@ import { Route, Switch } from 'react-router-dom'; -import GlobalStyles from './GlobalStyles'; const App = () => { return ( - <> - - - -
-
-
- + + +
+ + ); }; diff --git a/src/index.tsx b/src/index.tsx index 2a89b17..4987d79 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,6 +4,7 @@ import { ThemeProvider } from 'styled-components'; import { BrowserRouter } from 'react-router-dom'; import { theme } from './themes'; import App from './App'; +import GlobalStyles from './GlobalStyles'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( @@ -11,6 +12,7 @@ ReactDOM.render( + ,