<Router history={history}>
<Switch>
<Route path="/" permissions={["admin"]} auth component={DashboardAdmin}/>,
<Route path="/" permissions={["manager"]} auth component={DashboardManager}/>,
<Route path="/" noAuth component={LogIn}/>,
</Switch>
</Router>