added correct paths to routes

This commit is contained in:
Tomasz Kasprowicz 2021-01-09 19:11:37 +01:00
parent 72ab4cfd84
commit 0ba75f7df7

View File

@ -33,31 +33,31 @@ const App = (props: any)=> {
<Header sideDrawer={toggleSideDrawerHandler} isOpen={sideDrawer} />
{sideDrawer && <SideDrawer close={closeSidebarOnClickHandler}/>}
<Switch>
<Route exact path="/">
<Route exact path={process.env.PUBLIC_URL + '/'}>
<CreateTask />
</Route>
<Route exact path="/login">
<Route exact path={process.env.PUBLIC_URL + '/login'}>
<Login />
</Route>
<Route exact path="/all">
<Route exact path={process.env.PUBLIC_URL + '/all'}>
<TodoList />
</Route>
<Route exact path="/finished">
<Route exact path={process.env.PUBLIC_URL + '/finished'}>
<TodoList />
</Route>
<Route exact path="/current">
<Route exact path={process.env.PUBLIC_URL + '/current'}>
<TodoList />
</Route>
<Route exact path="/bussiness">
<Route exact path={process.env.PUBLIC_URL + '/bussiness'}>
<TodoList />
</Route>
<Route exact path="/personal">
<Route exact path={process.env.PUBLIC_URL + '/personal'}>
<TodoList />
</Route>
<Route exact path="/important">
<Route exact path={process.env.PUBLIC_URL + '/important'}>
<TodoList />
</Route>
<Route exact path="/Canceled">
<Route exact path={process.env.PUBLIC_URL + '/canceled'}>
<TodoList />
</Route>
</Switch>