feat(BOOK-757): Moved TeaserCard to design system and added stories
Approved-by: Bianca Widstam
This commit is contained in:
@@ -42,8 +42,8 @@ export default function AlertSidepeek({
|
||||
})}
|
||||
>
|
||||
<JsonToHtml
|
||||
nodes={content.json.children}
|
||||
embeds={content.embedded_itemsConnection.edges}
|
||||
nodes={content?.json.children}
|
||||
embeds={content?.embedded_itemsConnection.edges}
|
||||
/>
|
||||
</SidePeek>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { SidepeekContent } from "@scandic-hotels/common/constants/alert"
|
||||
import { AlertSidepeekContent } from "../../../types/sidepeekContent"
|
||||
|
||||
export interface AlertSidepeekProps {
|
||||
ctaText: string
|
||||
sidePeekContent: NonNullable<SidepeekContent>
|
||||
sidePeekContent: NonNullable<AlertSidepeekContent>
|
||||
}
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import type {
|
||||
AlertTypeEnum,
|
||||
SidepeekContent,
|
||||
} from "@scandic-hotels/common/constants/alert"
|
||||
import type { AlertTypeEnum } from "@scandic-hotels/common/constants/alert"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
import type { AriaRole, ReactNode } from "react"
|
||||
|
||||
import { AlertSidepeekContent } from "../../types/sidepeekContent"
|
||||
import type { alertVariants } from "./variants"
|
||||
|
||||
export interface AlertProps extends VariantProps<typeof alertVariants> {
|
||||
@@ -17,7 +15,7 @@ export interface AlertProps extends VariantProps<typeof alertVariants> {
|
||||
phoneNumber?: string
|
||||
footnote?: string | null
|
||||
} | null
|
||||
sidepeekContent?: SidepeekContent | null
|
||||
sidepeekContent?: AlertSidepeekContent | null
|
||||
sidepeekCtaText?: string | null
|
||||
link?: {
|
||||
url: string
|
||||
|
||||
Reference in New Issue
Block a user