Update app routing

This commit is contained in:
Hazem Krimi
2021-06-17 03:27:07 +01:00
parent e72754c979
commit fb544b6e46
+11
View File
@@ -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>