Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
fix: made changes for application to function
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshiLamba committed Aug 1, 2024
1 parent 361aac8 commit fea2800
Show file tree
Hide file tree
Showing 2 changed files with 444 additions and 1,345 deletions.
8 changes: 5 additions & 3 deletions client/src/pages/user/route-map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/

import type { PageComponent, RouteMap } from '@pages/route-map';
import type { RouteMap } from '@pages/route-map';

// Import pages
import EventCreationPage from './create-events';
Expand All @@ -13,13 +13,15 @@ import EventList from './event-list';
const userRouteMap: RouteMap = {
'/events/create': {
title: 'Create Events',
accessLevel: 'authenticated',
description: 'Create Your Events Here',
component: EventCreationPage as PageComponent,
component: EventCreationPage
},
'/events': {
title: 'List Events',
accessLevel: 'authenticated',
description: 'List Events Here',
component: EventList as PageComponent,
component: EventList
},
} as const;
export default userRouteMap;
Loading

0 comments on commit fea2800

Please sign in to comment.