From ff475dc9ebc27d513cb94cd7e1030f10b7533a94 Mon Sep 17 00:00:00 2001
From: "guilhem.carron" <gcarron@grandlyon.com>
Date: Mon, 9 Aug 2021 14:36:39 +0200
Subject: [PATCH] Remove Logs + fix padding

---
 src/components/Layout/layout.module.scss | 4 ++--
 src/components/Login/login.scss          | 1 +
 src/hooks/useAuth.ts                     | 5 +----
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/components/Layout/layout.module.scss b/src/components/Layout/layout.module.scss
index 4b8d70d0..a67ace33 100644
--- a/src/components/Layout/layout.module.scss
+++ b/src/components/Layout/layout.module.scss
@@ -14,7 +14,7 @@
   height: 100vh;
   z-index: 1501;
 
-  @media screen and(max-width: $width-phone) {
+  @media screen and(max-width: $width-tablet) {
     width: 0;
     display: none;
   }
@@ -35,7 +35,7 @@
   box-shadow: 0px 5px 5px rgb(0 0 0 / 20%), 0px 3px 14px rgb(0 0 0 / 12%),
     0px 8px 10px rgb(0 0 0 / 14%);
   background: $dark-light;
-  @media screen and(max-width: $width-phone) {
+  @media screen and(max-width: $width-tablet) {
     margin-left: 0;
     padding-bottom: $navbar-height;
   }
diff --git a/src/components/Login/login.scss b/src/components/Login/login.scss
index 8ce4f8b0..ee3b9215 100644
--- a/src/components/Login/login.scss
+++ b/src/components/Login/login.scss
@@ -5,5 +5,6 @@
   min-height: 95vh;
   .container {
     margin: auto;
+    padding: 2rem;
   }
 }
diff --git a/src/hooks/useAuth.ts b/src/hooks/useAuth.ts
index 7071eae3..5033ce15 100644
--- a/src/hooks/useAuth.ts
+++ b/src/hooks/useAuth.ts
@@ -18,9 +18,7 @@ export const useAuth = (): Auth => {
   //login user
   const loginUser = async (): Promise<void> => {
     try {
-      const tmp = await axios.get(`${_apiUrl}OAuth2Login`, { withCredentials: true })
-      console.log('lAAAAAA')
-      console.log(tmp)
+      await axios.get(`${_apiUrl}OAuth2Login`, { withCredentials: true })
       await setUserContext()
     } catch (e) {
       setError(e)
@@ -44,7 +42,6 @@ export const useAuth = (): Auth => {
       })
       if (data && setUser) {
         setUser(data)
-        console.log('usertoContext', data)
         history.push('/editing')
       }
     } catch (e) {
-- 
GitLab