added correct paths to routes
This commit is contained in:
parent
72ab4cfd84
commit
0ba75f7df7
18
src/App.tsx
18
src/App.tsx
@ -33,31 +33,31 @@ const App = (props: any)=> {
|
|||||||
<Header sideDrawer={toggleSideDrawerHandler} isOpen={sideDrawer} />
|
<Header sideDrawer={toggleSideDrawerHandler} isOpen={sideDrawer} />
|
||||||
{sideDrawer && <SideDrawer close={closeSidebarOnClickHandler}/>}
|
{sideDrawer && <SideDrawer close={closeSidebarOnClickHandler}/>}
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route exact path="/">
|
<Route exact path={process.env.PUBLIC_URL + '/'}>
|
||||||
<CreateTask />
|
<CreateTask />
|
||||||
</Route>
|
</Route>
|
||||||
<Route exact path="/login">
|
<Route exact path={process.env.PUBLIC_URL + '/login'}>
|
||||||
<Login />
|
<Login />
|
||||||
</Route>
|
</Route>
|
||||||
<Route exact path="/all">
|
<Route exact path={process.env.PUBLIC_URL + '/all'}>
|
||||||
<TodoList />
|
<TodoList />
|
||||||
</Route>
|
</Route>
|
||||||
<Route exact path="/finished">
|
<Route exact path={process.env.PUBLIC_URL + '/finished'}>
|
||||||
<TodoList />
|
<TodoList />
|
||||||
</Route>
|
</Route>
|
||||||
<Route exact path="/current">
|
<Route exact path={process.env.PUBLIC_URL + '/current'}>
|
||||||
<TodoList />
|
<TodoList />
|
||||||
</Route>
|
</Route>
|
||||||
<Route exact path="/bussiness">
|
<Route exact path={process.env.PUBLIC_URL + '/bussiness'}>
|
||||||
<TodoList />
|
<TodoList />
|
||||||
</Route>
|
</Route>
|
||||||
<Route exact path="/personal">
|
<Route exact path={process.env.PUBLIC_URL + '/personal'}>
|
||||||
<TodoList />
|
<TodoList />
|
||||||
</Route>
|
</Route>
|
||||||
<Route exact path="/important">
|
<Route exact path={process.env.PUBLIC_URL + '/important'}>
|
||||||
<TodoList />
|
<TodoList />
|
||||||
</Route>
|
</Route>
|
||||||
<Route exact path="/Canceled">
|
<Route exact path={process.env.PUBLIC_URL + '/canceled'}>
|
||||||
<TodoList />
|
<TodoList />
|
||||||
</Route>
|
</Route>
|
||||||
</Switch>
|
</Switch>
|
||||||
|
Loading…
Reference in New Issue
Block a user