chore(BOOK-739): replace caption with typography * chore(BOOK-739): replace caption with typography * chore(BOOK-739): refactor div * chore(BOOK-739): refactor badge * chore(BOOK-739): remove span * chore(BOOK-739): skeleton update * chore(BOOK-739): update * chore(BOOK-739): update reward * chore(BOOK-739): update voucher currency Approved-by: Erik Tiekstra
39 lines
952 B
TypeScript
39 lines
952 B
TypeScript
"use client"
|
|
|
|
import { motion } from "motion/react"
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
|
|
|
import styles from "./redeem.module.css"
|
|
|
|
export default function ActiveRedeemedBadge() {
|
|
const intl = useIntl()
|
|
|
|
return (
|
|
<div className={styles.redeemed}>
|
|
<motion.div
|
|
animate={{
|
|
opacity: [1, 0.4, 1],
|
|
}}
|
|
transition={{
|
|
duration: 2,
|
|
repeat: Infinity,
|
|
ease: "easeInOut",
|
|
}}
|
|
>
|
|
<MaterialIcon icon="check_circle" color="Icon/Feedback/Success" />
|
|
</motion.div>
|
|
<Typography variant="Body/Supporting text (caption)/smRegular">
|
|
<p>
|
|
{intl.formatMessage({
|
|
id: "rewards.active",
|
|
defaultMessage: "Active",
|
|
})}
|
|
</p>
|
|
</Typography>
|
|
</div>
|
|
)
|
|
}
|