- added main layout, sidebar, toolbar;
- started dashboard page, added first widget; - created new theme 'gepafin' - styles for the app;
This commit is contained in:
@@ -6,7 +6,7 @@ import AuthenticationService from '../../service/authentication-service';
|
||||
|
||||
const ProtectedRoute = () => {
|
||||
|
||||
if (!AuthenticationService.wasLoggedIn()) {
|
||||
/*if (!AuthenticationService.wasLoggedIn()) {
|
||||
return (<Navigate to={'/login'} replace/>);
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ const ProtectedRoute = () => {
|
||||
|
||||
if (!AuthenticationService.isLoggedIn()) {
|
||||
return (<Navigate to={'/login?redirectReason=auth_required'} replace/>);
|
||||
}
|
||||
}*/
|
||||
|
||||
if (window.location.pathname === '/') {
|
||||
return (<Navigate to={'/pages/dashboard'} replace/>);
|
||||
}
|
||||
/*if (window.location.pathname === '/') {
|
||||
return (<Navigate to={'/dashboard'} replace/>);
|
||||
}*/
|
||||
|
||||
return <Outlet/>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user