fix: replace temp design system components with design system package in surprises
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import { dt } from "@/lib/dt"
|
||||
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import useLang from "@/hooks/useLang"
|
||||
|
||||
import styles from "./expirationDate.module.css"
|
||||
@@ -21,19 +22,21 @@ export default function ExpirationDate({
|
||||
|
||||
return (
|
||||
<div className={styles.badge}>
|
||||
<Body textTransform="bold">
|
||||
{intl.formatMessage(
|
||||
{
|
||||
defaultMessage: "Valid through {expirationDate}",
|
||||
},
|
||||
{
|
||||
expirationDate: dt(expirationDate)
|
||||
.locale(lang)
|
||||
.utc()
|
||||
.format("D MMM YYYY"),
|
||||
}
|
||||
)}
|
||||
</Body>
|
||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||
<p>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
defaultMessage: "Valid through {expirationDate}",
|
||||
},
|
||||
{
|
||||
expirationDate: dt(expirationDate)
|
||||
.locale(lang)
|
||||
.utc()
|
||||
.format("D MMM YYYY"),
|
||||
}
|
||||
)}
|
||||
</p>
|
||||
</Typography>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user