Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

[PAY-1741] Add routes for transactional pages #3916

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions packages/web/src/utils/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export const CHECK_PAGE = '/check'
export const DEACTIVATE_PAGE = '/deactivate'
export const CHATS_PAGE = '/messages'
export const CHAT_PAGE = '/messages/:id?'
export const PURCHASES_PAGE = '/purchases'
export const SALES_PAGE = '/sales'
export const WITHDRAWALS_PAGE = '/withdrawals'

// Param routes.
export const NOTIFICATION_USERS_PAGE = '/notification/:notificationId/users'
Expand Down Expand Up @@ -156,7 +159,10 @@ export const authenticatedRoutes = [
SETTINGS_PAGE,
DEACTIVATE_PAGE,
CHATS_PAGE,
CHAT_PAGE
CHAT_PAGE,
PURCHASES_PAGE,
SALES_PAGE,
WITHDRAWALS_PAGE
]

export const publicSiteRoutes = [
Expand Down Expand Up @@ -194,6 +200,9 @@ export const orderedRoutes = [
ACCOUNT_SETTINGS_PAGE,
NOTIFICATION_SETTINGS_PAGE,
ABOUT_SETTINGS_PAGE,
PURCHASES_PAGE,
SALES_PAGE,
WITHDRAWALS_PAGE,
NOT_FOUND_PAGE,
HOME_PAGE,
PLAYLIST_PAGE,
Expand Down Expand Up @@ -241,7 +250,10 @@ export const staticRoutes = new Set([
ACCOUNT_SETTINGS_PAGE,
NOTIFICATION_SETTINGS_PAGE,
ABOUT_SETTINGS_PAGE,
TRENDING_GENRES
TRENDING_GENRES,
PURCHASES_PAGE,
SALES_PAGE,
WITHDRAWALS_PAGE
])

/** Given a pathname, finds a matching route */
Expand Down