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:
+11
@@ -27,8 +27,10 @@ import {
|
|||||||
Prototype,
|
Prototype,
|
||||||
AddCategory,
|
AddCategory,
|
||||||
AddFeature,
|
AddFeature,
|
||||||
|
AddTemplate,
|
||||||
CategorySettings,
|
CategorySettings,
|
||||||
FeatureSettings,
|
FeatureSettings,
|
||||||
|
TemplateSettings,
|
||||||
} 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';
|
||||||
@@ -104,6 +106,15 @@ const App = () => {
|
|||||||
<ProtectedRoute path='/template/:id' exact>
|
<ProtectedRoute path='/template/:id' exact>
|
||||||
<Template />
|
<Template />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/add-template' exact>
|
||||||
|
<AddTemplate />
|
||||||
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/template-settings/:id' exact>
|
||||||
|
<TemplateSettings />
|
||||||
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/add-template' exact>
|
||||||
|
<AddTemplate />
|
||||||
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/feature' exact>
|
<ProtectedRoute path='/feature' exact>
|
||||||
<Feature />
|
<Feature />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
|||||||
Reference in New Issue
Block a user