RC-2: correct navigation pages configs with auth user role

This commit is contained in:
2023-06-10 13:30:44 +01:00
parent 636c50d4ce
commit 67e92c92f9
4 changed files with 10 additions and 2 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',