feat(BOOK-743): Replaced deprecated Button component
Approved-by: Bianca Widstam
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { login } from "@scandic-hotels/common/constants/routes/handleAuth"
|
||||
import { signup } from "@scandic-hotels/common/constants/routes/signup"
|
||||
import { InfoCard } from "@scandic-hotels/design-system/InfoCard"
|
||||
|
||||
import Card from "@/components/TempDesignSystem/Card"
|
||||
import { getIntl } from "@/i18n"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
import { isLoggedInUser } from "@/utils/isLoggedInUser"
|
||||
@@ -20,9 +20,9 @@ export default async function EmployeeBenefitsAuthCard() {
|
||||
}
|
||||
|
||||
return (
|
||||
<Card
|
||||
<InfoCard
|
||||
className={styles.card}
|
||||
scriptedTopTitle={intl.formatMessage({
|
||||
topTitle={intl.formatMessage({
|
||||
id: "dtmc.letsBeFriends",
|
||||
defaultMessage: "Let’s be friends!",
|
||||
})}
|
||||
@@ -32,21 +32,19 @@ export default async function EmployeeBenefitsAuthCard() {
|
||||
})}
|
||||
primaryButton={{
|
||||
href: login[lang],
|
||||
title: intl.formatMessage({
|
||||
text: intl.formatMessage({
|
||||
id: "dtmc.logIn",
|
||||
defaultMessage: "Log in",
|
||||
}),
|
||||
openInNewTab: false,
|
||||
}}
|
||||
secondaryButton={{
|
||||
href: signup[lang],
|
||||
title: intl.formatMessage({
|
||||
text: intl.formatMessage({
|
||||
id: "common.signUp",
|
||||
defaultMessage: "Sign up",
|
||||
}),
|
||||
openInNewTab: false,
|
||||
}}
|
||||
theme="primaryInverted"
|
||||
theme="White"
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user