mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update pages and routing
This commit is contained in:
@@ -26,7 +26,9 @@ import {
|
|||||||
Category,
|
Category,
|
||||||
Prototype,
|
Prototype,
|
||||||
AddCategory,
|
AddCategory,
|
||||||
|
AddFeature,
|
||||||
CategorySettings,
|
CategorySettings,
|
||||||
|
FeatureSettings,
|
||||||
} 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';
|
||||||
@@ -108,6 +110,12 @@ const App = () => {
|
|||||||
<ProtectedRoute path='/feature/:id' exact>
|
<ProtectedRoute path='/feature/:id' exact>
|
||||||
<Feature />
|
<Feature />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/add-feature' exact>
|
||||||
|
<AddFeature />
|
||||||
|
</ProtectedRoute>
|
||||||
|
<ProtectedRoute path='/feature-settings/:id' exact>
|
||||||
|
<FeatureSettings />
|
||||||
|
</ProtectedRoute>
|
||||||
<ProtectedRoute path='/category' exact>
|
<ProtectedRoute path='/category' exact>
|
||||||
<Category />
|
<Category />
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ import CreateUser from './CreateUser';
|
|||||||
import Settings from './Settings';
|
import Settings from './Settings';
|
||||||
import UserSettings from './UserSettings';
|
import UserSettings from './UserSettings';
|
||||||
import AddCategory from './AddCategory';
|
import AddCategory from './AddCategory';
|
||||||
|
import AddFeature from './AddFeature';
|
||||||
import CategorySettings from './CategorySettings';
|
import CategorySettings from './CategorySettings';
|
||||||
|
import FeatureSettings from './FeatureSettings';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Login,
|
Login,
|
||||||
@@ -31,5 +33,7 @@ export {
|
|||||||
Settings,
|
Settings,
|
||||||
UserSettings,
|
UserSettings,
|
||||||
AddCategory,
|
AddCategory,
|
||||||
|
AddFeature,
|
||||||
CategorySettings,
|
CategorySettings,
|
||||||
|
FeatureSettings,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user