fix: refactor breadcrumbs to take page type variants to better match margins

This commit is contained in:
Christel Westerberg
2025-01-03 11:39:24 +01:00
parent 053ef4a1c9
commit 5901cab440
46 changed files with 286 additions and 175 deletions

View File

@@ -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 = {

View File

@@ -1,4 +1,4 @@
export enum ContentTypeEnum {
export enum PageContentTypeEnum {
accountPage = "account_page",
loyaltyPage = "loyalty_page",
hotelPage = "hotel_page",

View File

@@ -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",
}