auth for partners

This commit is contained in:
kurpfish
2021-08-04 18:17:33 +03:00
parent 937a78b04f
commit 9a55d65db1
4 changed files with 42 additions and 16 deletions

View File

@ -16,18 +16,18 @@ const App = () => {
return (
<Router>
<Switch>
<Route path='/auth' exact>
{/* <AuthPageForPartners /> */}
<Route path='/authdev' exact>
<AuthPageForDevelopers />
</Route>
<Route path='/auth' exact>
<AuthPageForPartners />
</Route>
<ProtectedRoute path='/' exact component={HomePage} />
<ProtectedRoute path='/candidate/:id' component={CandidatePage} />
<ProtectedRoute path='/calendar' component={CalendarPage} />
<ProtectedRoute path='/form' component={FormPage} />
<ProtectedRoute path='/report' component={ReportPage} />
<Route>
<div>Page not found</div>
</Route>
<ProtectedRoute component={()=><div>Page not found</div>} />
</Switch>
</Router>
)