remove unnecessary assosiation. add /index.html route to main page
This commit is contained in:
@@ -12,15 +12,6 @@ import Login from './Login';
|
||||
import { withRestrictions } from '../hocs/withRestrictions';
|
||||
import { requireEmployee } from '../util/constants';
|
||||
|
||||
// const TracksContainer = React.lazy(() => import('./TracksPage'));
|
||||
// const Header = React.lazy(() => import('./Header'));
|
||||
// const PersonPage = React.lazy(() => import('./PersonPage'));
|
||||
// const ErrorPage = React.lazy(() => import('./ErrorPage'));
|
||||
// const InvoicePage = React.lazy(() => import('./InvoicePage'));
|
||||
// const ManageStore = React.lazy(() => import('./ManageStore'));
|
||||
// const MyInvoicesPage = React.lazy(() => import('./MyInvoicesPage'));
|
||||
// const Login = React.lazy(() => import('./Login'));
|
||||
|
||||
const RestrictedLogin = withRestrictions(Login, ({ user }) => !user);
|
||||
const RestrictedInvoicePage = withRestrictions(
|
||||
InvoicePage,
|
||||
@@ -36,7 +27,7 @@ const MyRouter = () => {
|
||||
<div style={{ padding: '2em 20vh' }}>
|
||||
<React.Suspense fallback={<div>Loading...</div>}>
|
||||
<Switch>
|
||||
<Route exact path={['/', '/tracks']}>
|
||||
<Route exact path={['/index.html', '/tracks', '/']}>
|
||||
<TracksContainer />
|
||||
</Route>
|
||||
<Route exact path="/person">
|
||||
|
||||
@@ -42,12 +42,10 @@ entity Albums {
|
||||
}
|
||||
|
||||
entity Employees : Person {
|
||||
reportsTo : Association to Employees;
|
||||
title : String(20);
|
||||
birthDate : DateTime;
|
||||
hireDate : DateTime;
|
||||
subordinates : Association to many Employees
|
||||
on subordinates.reportsTo = $self;
|
||||
reportsTo : Association to Employees;
|
||||
title : String(20);
|
||||
birthDate : DateTime;
|
||||
hireDate : DateTime;
|
||||
}
|
||||
|
||||
entity Customers : Person {
|
||||
|
||||
Reference in New Issue
Block a user