feat(BOOK-757): Moved TeaserCard to design system and added stories
Approved-by: Bianca Widstam
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { TeaserCard } from "@scandic-hotels/design-system/TeaserCard"
|
||||
import {
|
||||
CardsGridEnum,
|
||||
CardsGridLayoutEnum,
|
||||
@@ -9,7 +10,6 @@ import { SectionHeader } from "@/components/Section/Header"
|
||||
import Card from "@/components/TempDesignSystem/Card"
|
||||
import Grids from "@/components/TempDesignSystem/Grids"
|
||||
import LoyaltyCard from "@/components/TempDesignSystem/LoyaltyCard"
|
||||
import TeaserCard from "@/components/TempDesignSystem/TeaserCard"
|
||||
|
||||
import type { CardsGrid as CardsGridBlock } from "@scandic-hotels/trpc/types/blocks"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
@@ -89,8 +89,8 @@ export default function CardsGrid({
|
||||
return (
|
||||
<TeaserCard
|
||||
key={card.system.uid}
|
||||
title={card.heading}
|
||||
description={card.body_text}
|
||||
heading={card.heading}
|
||||
bodyText={card.body_text}
|
||||
primaryButton={card.primaryButton}
|
||||
secondaryButton={card.secondaryButton}
|
||||
sidePeekButton={card.sidePeekButton}
|
||||
|
||||
Reference in New Issue
Block a user