RC-2: correct navigation pages configs with auth user role
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import i18next from 'i18next';
|
||||
|
||||
import { authRoles } from 'src/app/auth';
|
||||
import Dashboard from './Dashboard';
|
||||
import en from './i18n/en';
|
||||
|
||||
@@ -11,6 +12,7 @@ const DashboardConfig = {
|
||||
config: {},
|
||||
},
|
||||
},
|
||||
auth: authRoles.user,
|
||||
routes: [
|
||||
{
|
||||
path: 'dashboard',
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import i18next from 'i18next';
|
||||
|
||||
import en from './i18n/en';
|
||||
import { authRoles } from 'src/app/auth';
|
||||
import Favorites from './Favorites';
|
||||
import en from './i18n/en';
|
||||
|
||||
i18next.addResourceBundle('en', 'favoritesPage', en);
|
||||
|
||||
@@ -11,6 +12,7 @@ const FavoritesConfig = {
|
||||
config: {},
|
||||
},
|
||||
},
|
||||
auth: authRoles.user,
|
||||
routes: [
|
||||
{
|
||||
path: 'favorites',
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import i18next from 'i18next';
|
||||
|
||||
import en from './i18n/en';
|
||||
import { authRoles } from 'src/app/auth';
|
||||
import History from './History';
|
||||
import en from './i18n/en';
|
||||
|
||||
i18next.addResourceBundle('en', 'historyPage', en);
|
||||
|
||||
@@ -11,6 +12,7 @@ const HistoryConfig = {
|
||||
config: {},
|
||||
},
|
||||
},
|
||||
auth: authRoles.user,
|
||||
routes: [
|
||||
{
|
||||
path: 'history',
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import i18next from 'i18next';
|
||||
|
||||
import { authRoles } from 'src/app/auth';
|
||||
import en from './i18n/en';
|
||||
import Profile from './Profile';
|
||||
|
||||
@@ -11,6 +12,7 @@ const ProfileConfig = {
|
||||
config: {},
|
||||
},
|
||||
},
|
||||
auth: authRoles.user,
|
||||
routes: [
|
||||
{
|
||||
path: 'profile',
|
||||
|
||||
Reference in New Issue
Block a user