50 lines
742 B
JavaScript
50 lines
742 B
JavaScript
import i18next from 'i18next';
|
|
|
|
import authRoles from '../../../configs/consts';
|
|
import Dashboard from './Dashboard';
|
|
import en from './i18n/en';
|
|
|
|
i18next.addResourceBundle('en', 'dashboardPage', en);
|
|
|
|
const DashboardConfig = {
|
|
settings: {
|
|
layout: {
|
|
config: {},
|
|
},
|
|
},
|
|
auth: authRoles.user,
|
|
routes: [
|
|
{
|
|
path: 'dashboard',
|
|
element: <Dashboard />,
|
|
},
|
|
],
|
|
};
|
|
|
|
export default DashboardConfig;
|
|
|
|
/**
|
|
* Lazy load Example
|
|
*/
|
|
/*
|
|
import React from 'react';
|
|
|
|
const Example = lazy(() => import('./Example'));
|
|
|
|
const ExampleConfig = {
|
|
settings: {
|
|
layout: {
|
|
config: {},
|
|
},
|
|
},
|
|
routes: [
|
|
{
|
|
path: 'example',
|
|
element: <Example />,
|
|
},
|
|
],
|
|
};
|
|
|
|
export default ExampleConfig;
|
|
*/
|