fix: text color on points is now correct when revisiting the page
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { awardPointsVariants } from "./awardPointsVariants"
|
import { awardPointsVariants } from "./awardPointsVariants"
|
||||||
|
|
||||||
@@ -31,12 +31,14 @@ export default function AwardPoints({
|
|||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Body textTransform="bold" className={classNames}>
|
<Typography variant="Body/Paragraph/mdBold" className={classNames}>
|
||||||
{isCalculated
|
<span>
|
||||||
? intl.formatNumber(awardPoints)
|
{isCalculated
|
||||||
: intl.formatMessage({
|
? intl.formatNumber(awardPoints)
|
||||||
defaultMessage: "Points being calculated",
|
: intl.formatMessage({
|
||||||
})}
|
defaultMessage: "Points being calculated",
|
||||||
</Body>
|
})}
|
||||||
|
</span>
|
||||||
|
</Typography>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user