Client - deactivate administration for now

This commit is contained in:
Sam 2018-06-20 11:24:04 +02:00
parent 541f853cf8
commit 09e1e52e16
4 changed files with 14 additions and 14 deletions

View File

@ -2,7 +2,7 @@ import React from 'react'
import { Redirect, Route, Switch } from 'react-router-dom'
import './App.css'
import Admin from './Admin'
// import Admin from './Admin'
import Activity from './Activity'
import Activities from './Activities'
import Dashboard from './Dashboard'
@ -90,7 +90,7 @@ export default class App extends React.Component {
component={Activities}
/>
<Route path="/activities" component={Activity} />
<Route path="/admin" component={Admin} />
{/* <Route path="/admin" component={Admin} /> */}
<Route component={NotFound} />
</Switch>
</div>

View File

@ -58,18 +58,18 @@ function NavBar(props) {
</Link>
</li>
)}
{props.user.admin && (
<li className="nav-item">
<Link
className="nav-link"
to={{
pathname: '/admin',
}}
>
Admin
</Link>
</li>
)}
{/* {props.user.admin && ( */}
{/* <li className="nav-item"> */}
{/* <Link */}
{/* className="nav-link" */}
{/* to={{ */}
{/* pathname: '/admin', */}
{/* }} */}
{/* > */}
{/* Admin */}
{/* </Link> */}
{/* </li> */}
{/* )} */}
</ul>
<ul className="navbar-nav flex-row ml-md-auto d-none d-md-flex">
{!props.user.isAuthenticated && (