feat(SW-243): set button asChild
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
@@ -28,20 +29,26 @@ export default async function IntroSection({ email }: IntroSectionProps) {
|
|||||||
</Body>
|
</Body>
|
||||||
<div className={styles.buttons}>
|
<div className={styles.buttons}>
|
||||||
<Button
|
<Button
|
||||||
|
asChild
|
||||||
size="small"
|
size="small"
|
||||||
theme="base"
|
theme="base"
|
||||||
intent="secondary"
|
intent="secondary"
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
>
|
>
|
||||||
{intl.formatMessage({ id: "Download the Scandic app" })}
|
<Link href="#" color="none">
|
||||||
|
{intl.formatMessage({ id: "Download the Scandic app" })}
|
||||||
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
asChild
|
||||||
size="small"
|
size="small"
|
||||||
theme="base"
|
theme="base"
|
||||||
intent="secondary"
|
intent="secondary"
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
>
|
>
|
||||||
{intl.formatMessage({ id: "View your booking" })}
|
<Link href="#" color="none">
|
||||||
|
{intl.formatMessage({ id: "View your booking" })}
|
||||||
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user