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,
AddProject,
UpdateProject,
Payments,
SupportMessaging,
} from './pages';
import { GetUserByIdQuery, GetUserByIdQueryVariables } from './graphql/types';
import { GET_USER_BY_ID } from './graphql/auth.api';
@@ -102,12 +104,21 @@ const App = () => {
<ProtectedRoute path='/project/:id' exact>
<Project />
</ProtectedRoute>
<ProtectedRoute path='/payments/:id' exact>
<Payments />
</ProtectedRoute>
<ProtectedRoute path='/add-project' exact>
<AddProject />
</ProtectedRoute>
<ProtectedRoute path='/project-settings/:id' exact>
<UpdateProject />
</ProtectedRoute>
<ProtectedRoute path='/support-messaging/:project' exact>
<SupportMessaging />
</ProtectedRoute>
<ProtectedRoute path='/support-messaging/:project/:id' exact>
<SupportMessaging />
</ProtectedRoute>
<ProtectedRoute path='/template' exact>
<Template />
</ProtectedRoute>