fix(SW-217): Styling fixes for teaser-card

This commit is contained in:
Erik Tiekstra
2024-11-04 13:23:26 +01:00
parent bc93fcaefd
commit 0854881c2c
5 changed files with 24 additions and 41 deletions

View File

@@ -1,9 +1,10 @@
import { ContentstackLivePreview } from "@contentstack/live-preview-utils"
import { notFound } from "next/navigation"
import ContentPage from "@/components/ContentType/ContentPage"
import HotelPage from "@/components/ContentType/HotelPage"
import LoyaltyPage from "@/components/ContentType/LoyaltyPage"
import CollectionPage from "@/components/ContentType/StaticPages/CollectionPage"
import ContentPage from "@/components/ContentType/StaticPages/ContentPage"
import LoadingSpinner from "@/components/LoadingSpinner"
import { setLang } from "@/i18n/serverContext"
@@ -32,11 +33,13 @@ export default async function PreviewPage({
return <ContentPage />
case "loyalty-page":
return <LoyaltyPage />
case "collection-page":
return <CollectionPage />
case "hotel-page":
return <HotelPage />
default:
console.log({ PREVIEW: params })
const type: never = params.contentType
const type = params.contentType
console.error(`Unsupported content type given: ${type}`)
notFound()
}