Update app routing

This commit is contained in:
Hazem Krimi
2021-05-30 02:30:52 +01:00
parent 7253107bee
commit ffaf32862e
+11
View File
@@ -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>