mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Update app routing
This commit is contained in:
+11
@@ -33,6 +33,8 @@ import {
|
|||||||
TemplateSettings,
|
TemplateSettings,
|
||||||
AddProject,
|
AddProject,
|
||||||
UpdateProject,
|
UpdateProject,
|
||||||
|
Payments,
|
||||||
|
SupportMessaging,
|
||||||
} 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';
|
||||||
@@ -102,12 +104,21 @@ const App = () => {
|
|||||||
<ProtectedRoute path='/project/:id' exact>
|
<ProtectedRoute path='/project/:id' exact>
|
||||||
<Project />
|
<Project />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/payments/:id' exact>
|
||||||
|
<Payments />
|
||||||
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/add-project' exact>
|
<ProtectedRoute path='/add-project' exact>
|
||||||
<AddProject />
|
<AddProject />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/project-settings/:id' exact>
|
<ProtectedRoute path='/project-settings/:id' exact>
|
||||||
<UpdateProject />
|
<UpdateProject />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/support-messaging/:project' exact>
|
||||||
|
<SupportMessaging />
|
||||||
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/support-messaging/:project/:id' exact>
|
||||||
|
<SupportMessaging />
|
||||||
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/template' exact>
|
<ProtectedRoute path='/template' exact>
|
||||||
<Template />
|
<Template />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
|||||||
Reference in New Issue
Block a user