Merged in feat/SW-1443-card-gallery-destination-overview (pull request #1362)
feat(SW-1443): added cardGallery block to destination overview page instead of carousel functionality * feat(SW-1443): added cardGallery block to destination overview page instead of carousel functionality Approved-by: Fredrik Thorsson
This commit is contained in:
3
types/components/blocks/cardGallery.ts
Normal file
3
types/components/blocks/cardGallery.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import type { CardGallery } from "@/types/trpc/routers/contentstack/blocks"
|
||||
|
||||
export interface CardGalleryProps extends Pick<CardGallery, "card_gallery"> {}
|
||||
@@ -1,17 +1,18 @@
|
||||
export namespace BlocksEnums {
|
||||
export const enum block {
|
||||
Accordion = "Accordion",
|
||||
CardGallery = "CardGallery",
|
||||
CardsGrid = "CardsGrid",
|
||||
CarouselCards = "CarouselCards",
|
||||
Content = "Content",
|
||||
DynamicContent = "DynamicContent",
|
||||
FullWidthCampaign = "FullWidthCampaign",
|
||||
HotelListing = "HotelListing",
|
||||
JoinScandicFriends = "JoinScandicFriends",
|
||||
Shortcuts = "Shortcuts",
|
||||
Table = "Table",
|
||||
TextCols = "TextCols",
|
||||
TextContent = "TextContent",
|
||||
UspGrid = "UspGrid",
|
||||
HotelListing = "HotelListing",
|
||||
FullWidthCampaign = "FullWidthCampaign",
|
||||
CarouselCards = "CarouselCards",
|
||||
JoinScandicFriends = "JoinScandicFriends",
|
||||
}
|
||||
}
|
||||
|
||||
10
types/enums/cardGallery.ts
Normal file
10
types/enums/cardGallery.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export const CardGalleryFilterEnum = {
|
||||
offers: "offers",
|
||||
popular_destinations: "popular_destinations",
|
||||
popular_hotels: "popular_hotels",
|
||||
popular_cities: "popular_cities",
|
||||
spa_wellness: "spa_wellness",
|
||||
} as const
|
||||
|
||||
export type CardGalleryFilter =
|
||||
(typeof CardGalleryFilterEnum)[keyof typeof CardGalleryFilterEnum]
|
||||
@@ -1,7 +1,7 @@
|
||||
export namespace DestinationOverviewPageEnum {
|
||||
export namespace ContentStack {
|
||||
export const enum blocks {
|
||||
CarouselCards = "DestinationOverviewPageBlocksCarouselCards",
|
||||
CardGallery = "DestinationOverviewPageBlocksCardGallery",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { z } from "zod"
|
||||
|
||||
import type { cardGallerySchema } from "@/server/routers/contentstack/schemas/blocks/cardGallery"
|
||||
import type { teaserCardBlockSchema } from "@/server/routers/contentstack/schemas/blocks/cards/teaserCard"
|
||||
import type { cardsGridSchema } from "@/server/routers/contentstack/schemas/blocks/cardsGrid"
|
||||
import type { carouselCardsSchema } from "@/server/routers/contentstack/schemas/blocks/carouselCards"
|
||||
@@ -24,3 +25,4 @@ export interface UspGrid extends z.output<typeof uspGridSchema> {}
|
||||
interface GetHotelListing extends z.output<typeof hotelListingSchema> {}
|
||||
export type HotelListing = GetHotelListing["hotel_listing"]
|
||||
export interface CarouselCards extends z.output<typeof carouselCardsSchema> {}
|
||||
export interface CardGallery extends z.output<typeof cardGallerySchema> {}
|
||||
|
||||
Reference in New Issue
Block a user