mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update app routing
This commit is contained in:
+14
-4
@@ -17,9 +17,10 @@ import {
|
|||||||
RecoverAccount,
|
RecoverAccount,
|
||||||
Signup,
|
Signup,
|
||||||
Project,
|
Project,
|
||||||
Clients,
|
Users,
|
||||||
Settings,
|
Settings,
|
||||||
UserSettings,
|
UserSettings,
|
||||||
|
CreateUser,
|
||||||
} from './pages';
|
} from './pages';
|
||||||
import { GetUserByIdQuery, GetUserByIdQueryVariables } from './graphql/types';
|
import { GetUserByIdQuery, GetUserByIdQueryVariables } from './graphql/types';
|
||||||
import { GET_USER_BY_ID } from './graphql/auth.api';
|
import { GET_USER_BY_ID } from './graphql/auth.api';
|
||||||
@@ -87,14 +88,23 @@ const App = () => {
|
|||||||
<Project />
|
<Project />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/clients' exact>
|
<ProtectedRoute path='/clients' exact>
|
||||||
<Clients />
|
<Users />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/settings' exact>
|
<ProtectedRoute path='/product-owners' exact>
|
||||||
<Settings />
|
<Users />
|
||||||
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/developers' exact>
|
||||||
|
<Users />
|
||||||
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/create-user/:role' exact>
|
||||||
|
<CreateUser />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/user-settings/:id' exact>
|
<ProtectedRoute path='/user-settings/:id' exact>
|
||||||
<UserSettings />
|
<UserSettings />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/settings' exact>
|
||||||
|
<Settings />
|
||||||
|
</ProtectedRoute>
|
||||||
<AuthRoute path='/login' exact>
|
<AuthRoute path='/login' exact>
|
||||||
<Login />
|
<Login />
|
||||||
</AuthRoute>
|
</AuthRoute>
|
||||||
|
|||||||
Reference in New Issue
Block a user