refactor: remove main/example files
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
import { styled } from '@mui/material/styles';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import FusePageSimple from '@fuse/core/FusePageSimple';
|
||||
import DemoContent from '@fuse/core/DemoContent';
|
||||
|
||||
const Root = styled(FusePageSimple)(({ theme }) => ({
|
||||
'& .FusePageSimple-header': {
|
||||
backgroundColor: theme.palette.background.paper,
|
||||
borderBottomWidth: 1,
|
||||
borderStyle: 'solid',
|
||||
borderColor: theme.palette.divider,
|
||||
},
|
||||
'& .FusePageSimple-toolbar': {},
|
||||
'& .FusePageSimple-content': {},
|
||||
'& .FusePageSimple-sidebarHeader': {},
|
||||
'& .FusePageSimple-sidebarContent': {},
|
||||
}));
|
||||
|
||||
function ExamplePage(props) {
|
||||
const { t } = useTranslation('examplePage');
|
||||
|
||||
return (
|
||||
<Root
|
||||
header={
|
||||
<div className="p-24">
|
||||
<h4>{t('TITLE')}</h4>
|
||||
</div>
|
||||
}
|
||||
content={
|
||||
<div className="p-24">
|
||||
<h4>Content</h4>
|
||||
<br />
|
||||
<DemoContent />
|
||||
</div>
|
||||
}
|
||||
scroll="content"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default ExamplePage;
|
||||
@@ -1,51 +0,0 @@
|
||||
import i18next from 'i18next';
|
||||
|
||||
import en from './i18n/en';
|
||||
import tr from './i18n/tr';
|
||||
import ar from './i18n/ar';
|
||||
import Example from './Example';
|
||||
|
||||
i18next.addResourceBundle('en', 'examplePage', en);
|
||||
i18next.addResourceBundle('tr', 'examplePage', tr);
|
||||
i18next.addResourceBundle('ar', 'examplePage', ar);
|
||||
|
||||
const ExampleConfig = {
|
||||
settings: {
|
||||
layout: {
|
||||
config: {},
|
||||
},
|
||||
},
|
||||
routes: [
|
||||
{
|
||||
path: 'example',
|
||||
element: <Example />,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default ExampleConfig;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
*/
|
||||
@@ -1,5 +0,0 @@
|
||||
const locale = {
|
||||
TITLE: 'Example Page',
|
||||
};
|
||||
|
||||
export default locale;
|
||||
Reference in New Issue
Block a user