Merged in feat-StaticChip-component (pull request #3401)
feat: create new StaticChip component * feat: create new StaticChip componeny * refactor: remove deprecated Chip * fix: update type * refactor: remove div Approved-by: Erik Tiekstra
This commit is contained in:
@@ -4,7 +4,7 @@ import { cx } from "class-variance-authority"
|
||||
import NextLink from "next/link"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import Chip from "@scandic-hotels/design-system/Chip"
|
||||
import { ChipStatic } from "@scandic-hotels/design-system/ChipStatic"
|
||||
import Image from "@scandic-hotels/design-system/Image"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
@@ -47,7 +47,14 @@ export function ContentCard({
|
||||
dimensions={image.dimensions}
|
||||
/>
|
||||
{promoText ? (
|
||||
<Chip className={styles.promoTag}>{promoText}</Chip>
|
||||
<ChipStatic
|
||||
color="Neutral"
|
||||
size="sm"
|
||||
lowerCase
|
||||
className={styles.promoTag}
|
||||
>
|
||||
{promoText}
|
||||
</ChipStatic>
|
||||
) : null}
|
||||
</div>
|
||||
<div className={styles.content}>
|
||||
|
||||
Reference in New Issue
Block a user