RC-2-auth-pages #1

Merged
evgeniywas merged 8 commits from RC-2-auth-pages into dev 2023-06-11 13:39:34 +03:00
4 changed files with 10 additions and 2 deletions
Showing only changes of commit 67e92c92f9 - Show all commits

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