From f2d1611c58ddbd9e288ac10c44be962b1d0a2a85 Mon Sep 17 00:00:00 2001
From: Roland Bernard <rolbernard@unibz.it>
Date: Fri, 9 Apr 2021 09:59:05 +0200
Subject: [PATCH] Global html/body styles belong into index.scss

---
 client/src/App.test.tsx             | 11 -----------
 client/src/App.tsx                  |  1 -
 client/src/{App.scss => index.scss} |  0
 client/src/index.tsx                |  2 ++
 4 files changed, 2 insertions(+), 12 deletions(-)
 delete mode 100644 client/src/App.test.tsx
 rename client/src/{App.scss => index.scss} (100%)

diff --git a/client/src/App.test.tsx b/client/src/App.test.tsx
deleted file mode 100644
index ed8efc5..0000000
--- a/client/src/App.test.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-
-import React from 'react';
-import { render, screen } from '@testing-library/react';
-import App from 'App';
-
-test('app renders `Home`', () => {
-    render(<App />);
-    const linkElement = screen.getByText(/Home/i);
-    expect(linkElement).toBeInTheDocument();
-});
-
diff --git a/client/src/App.tsx b/client/src/App.tsx
index 25d6fb5..e581869 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -3,7 +3,6 @@ import React from 'react';
 import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
 
 import Home from 'pages/Home';
-import 'App.scss';
 
 export default function App() {
     return (
diff --git a/client/src/App.scss b/client/src/index.scss
similarity index 100%
rename from client/src/App.scss
rename to client/src/index.scss
diff --git a/client/src/index.tsx b/client/src/index.tsx
index a129833..148d27d 100644
--- a/client/src/index.tsx
+++ b/client/src/index.tsx
@@ -5,7 +5,9 @@ import ReactDOM from 'react-dom';
 import App from 'App';
 import * as serviceWorkerRegistration from './serviceWorkerRegistration';
 import reportWebVitals from './reportWebVitals';
+
 import 'styles/fonts.css';
+import 'index.scss';
 
 ReactDOM.render(
     <React.StrictMode>
-- 
GitLab