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:
+21
-1
@@ -25,6 +25,8 @@ import {
|
|||||||
Feature,
|
Feature,
|
||||||
Category,
|
Category,
|
||||||
Prototype,
|
Prototype,
|
||||||
|
AddCategory,
|
||||||
|
CategorySettings,
|
||||||
} 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';
|
||||||
@@ -91,16 +93,34 @@ const App = () => {
|
|||||||
<ProtectedRoute path='/project' exact>
|
<ProtectedRoute path='/project' exact>
|
||||||
<Project />
|
<Project />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/project/:id' exact>
|
||||||
|
<Project />
|
||||||
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/template' exact>
|
<ProtectedRoute path='/template' exact>
|
||||||
<Template />
|
<Template />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/template/:id' exact>
|
||||||
|
<Template />
|
||||||
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/feature' exact>
|
<ProtectedRoute path='/feature' exact>
|
||||||
<Feature />
|
<Feature />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/feature/:id' exact>
|
||||||
|
<Feature />
|
||||||
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/category' exact>
|
<ProtectedRoute path='/category' exact>
|
||||||
<Category />
|
<Category />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/prototype' exact>
|
<ProtectedRoute path='/category/:id' exact>
|
||||||
|
<Category />
|
||||||
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/add-category' exact>
|
||||||
|
<AddCategory />
|
||||||
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/category-settings/:id' exact>
|
||||||
|
<CategorySettings />
|
||||||
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/prototype/:id' exact>
|
||||||
<Prototype />
|
<Prototype />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/clients' exact>
|
<ProtectedRoute path='/clients' exact>
|
||||||
|
|||||||
Reference in New Issue
Block a user