From 791f7ae8deb6e203bc83bc5a964364b24edd7718 Mon Sep 17 00:00:00 2001
From: Damien <damien.armillon@gmail.com>
Date: Sat, 18 May 2019 11:51:36 +0200
Subject: [PATCH] Debeug button

---
 front/src/App.js        | 10 +++++++---
 front/src/view/Login.js |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/front/src/App.js b/front/src/App.js
index c6eaac4..35618d8 100644
--- a/front/src/App.js
+++ b/front/src/App.js
@@ -11,12 +11,16 @@ import logo from './image/logo.png'
 
 function App() {
   return (
-      <div style={{verticalAlign:"center"}}>
-      <Image src={logo} alt="Logo" href="/" style={{marginLeft:'30%', width:'40%'}} />
+      <div >
+        <div style={{textAlign:"center"}}>
+      <Image src={logo} alt="Logo" href="/" style={{ width:'40%'}} />
+      </div>
       <Router >
-        <Link to="/admin" style={{float:"right", margin:"2em"}} >
+        <div style={{textAlign:"right"}}>
+        <Link to="/admin" style={{position:"absolute",top:'2em' ,right:"2em"}} >
           <Button icon="male" content="Espace admin"/>
         </Link>
+        </div>
         <Route exact path='/' component={AllToucanPage} />
         <Route exact path='/admin' render={()=>isLogged() ? <AdminPage/> : window.location=`${env.backURL}/oauth/login`}/>
         <Route exact path='/login/:token' component={Login} />
diff --git a/front/src/view/Login.js b/front/src/view/Login.js
index e1e3f45..f000080 100644
--- a/front/src/view/Login.js
+++ b/front/src/view/Login.js
@@ -5,7 +5,7 @@ class Login extends Component {
     componentDidMount(){
         localStorage.setItem("token",this.props.match.params.token);
         console.log(localStorage.getItem("token"));
-        window.location = '/';
+        window.location = '/admin';
         
         
     }
-- 
GitLab