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} /> <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>