Skip to content

Commit 0913d87

Browse files
author
Antonio Contreras LEMONCODE
committed
Remove time pods and create new routes and submodule list component
1 parent fffbe04 commit 0913d87

32 files changed

Lines changed: 33 additions & 1002 deletions

src/core/router/router.component.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { HashRouter, Switch, Route } from 'react-router-dom';
33
import { AuthRouterComponent } from 'common-app/auth';
44
import { routes } from './routes';
5-
import { LoginScene, TimeScene } from 'scenes';
5+
import { LoginScene, SubmoduleListScene } from 'scenes';
66

77
export const RouterComponent: React.FunctionComponent = () => {
88
return (
@@ -15,8 +15,8 @@ export const RouterComponent: React.FunctionComponent = () => {
1515
/>
1616
<AuthRouterComponent
1717
exact={true}
18-
path={routes.time}
19-
component={TimeScene}
18+
path={routes.submoduleList}
19+
component={SubmoduleListScene}
2020
/>
2121
</Switch>
2222
</HashRouter>

src/core/router/routes.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@ interface BaseRoutes {
22
root: string;
33
login: string;
44
time: string;
5+
submoduleList: string;
6+
projects: string;
7+
editProject: string;
8+
employees: string;
9+
editEmployee: string;
510
}
611

712
const baseRoutes: BaseRoutes = {
813
root: '/',
914
login: '/login',
1015
time: '/time',
16+
submoduleList: '/submodule-list',
17+
projects: './projects',
18+
editProject: './projects/:id',
19+
employees: './employees',
20+
editEmployee: './employees/:id',
1121
};
1222

13-
type Routes = Omit<BaseRoutes, ''>;
23+
type Routes = Omit<BaseRoutes, 'editProject' | 'editEmployee'>;
1424

1525
export const routes: Routes = {
1626
...baseRoutes,

src/pods/submodule-list/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './submodule-list.component';
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import React from 'react';
2+
3+
export const SumoduleListComponent: React.FC = () => {
4+
return <h1>Hello Submodule List</h1>;
5+
};

src/pods/time/components/actions.component.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/pods/time/components/actions.styles.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/pods/time/components/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/pods/time/components/table/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/pods/time/components/table/table-content.component.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/pods/time/components/table/table-footer.component.tsx

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)