fix: refactor breadcrumbs to take page type variants to better match margins
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
import type { Lang } from "@/constants/languages"
|
||||
import type { PageContentTypeEnum } from "./requests/contentType"
|
||||
|
||||
export type SearchParams<S = {}> = {
|
||||
searchParams: S & { [key: string]: string }
|
||||
@@ -18,10 +19,10 @@ export type StatusParams = {
|
||||
|
||||
export type ContentTypeParams = {
|
||||
contentType:
|
||||
| "loyalty-page"
|
||||
| "content-page"
|
||||
| "hotel-page"
|
||||
| "collection-page"
|
||||
| PageContentTypeEnum.loyaltyPage
|
||||
| PageContentTypeEnum.contentPage
|
||||
| PageContentTypeEnum.hotelPage
|
||||
| PageContentTypeEnum.collectionPage
|
||||
}
|
||||
|
||||
export type ContentTypeWebviewParams = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export enum ContentTypeEnum {
|
||||
export enum PageContentTypeEnum {
|
||||
accountPage = "account_page",
|
||||
loyaltyPage = "loyalty_page",
|
||||
hotelPage = "hotel_page",
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
export enum PageTypeEnum {
|
||||
accountPage = "account-page",
|
||||
loyaltyPage = "loyalty-page",
|
||||
hotelPage = "hotel-page",
|
||||
contentPage = "content-page",
|
||||
collectionPage = "collection-page",
|
||||
currentBlocksPage = "current-blocks-page",
|
||||
}
|
||||
Reference in New Issue
Block a user