feat(SW-865): link to booking without validation

This commit is contained in:
Simon Emanuelsson
2024-12-12 13:49:15 +01:00
parent 9d4998c9c5
commit 51f422510c
11 changed files with 79 additions and 53 deletions

View File

@@ -9,18 +9,18 @@ import type { PromoProps } from "@/types/components/hotelReservation/bookingConf
export default function Promo({ buttonText, href, text, title }: PromoProps) {
return (
<article className={styles.promo}>
<Title color="white" level="h4">
{title}
</Title>
<Body className={styles.text} color="white" textAlign="center">
{text}
</Body>
<Button asChild intent="primary" size="small" theme="primaryStrong">
<Link color="none" href={href}>
{buttonText}
</Link>
</Button>
</article>
<Link className={styles.link} color="none" href={href}>
<article className={styles.promo}>
<Title color="white" level="h4">
{title}
</Title>
<Body className={styles.text} color="white" textAlign="center">
{text}
</Body>
<Button asChild intent="primary" size="small" theme="primaryStrong">
<div>{buttonText}</div>
</Button>
</article>
</Link>
)
}