Skip to content

Commit

Permalink
TS fix on getPageType.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ElKornacio committed Nov 21, 2023
1 parent 97f68a2 commit 1adaac5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/mixpanel/getPageType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ export const PAGE_TYPE_DICT: Record<Route['pathname'], string> = {
'/api/healthz': 'Node API: Health check',
'/auth/auth0': 'Auth',
'/auth/unverified-email': 'Unverified email',

'/forum': 'Forum',
'/forum/[topic]': 'Forum ttopic',
'/forum/[topic]/create-thread': 'Forum: Create thread',
'/forum/[topic]/[thread]': 'Forum thread',
'/forum/chats': 'Chats',
'/forum/chats/[hash]': 'Chat',
'/forum/bookmarks/[hash]': 'Bookmarks',
'/forum/watches/[hash]': 'Watches',
};

export default function getPageType(pathname: Route['pathname']) {
Expand Down

0 comments on commit 1adaac5

Please sign in to comment.