fix: align price formatting
This commit is contained in:
@@ -8,6 +8,7 @@ import Button from "@/components/TempDesignSystem/Button"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||
import useLang from "@/hooks/useLang"
|
||||
import { formatPrice } from "@/utils/numberFormatting"
|
||||
|
||||
import styles from "./paymentDetails.module.css"
|
||||
|
||||
@@ -25,10 +26,7 @@ export default function PaymentDetails({
|
||||
</Subtitle>
|
||||
<div className={styles.payment}>
|
||||
<Body color="uiTextHighContrast">
|
||||
{intl.formatNumber(booking.totalPrice, {
|
||||
currency: booking.currencyCode,
|
||||
style: "currency",
|
||||
})}{" "}
|
||||
{formatPrice(intl, booking.totalPrice, booking.currencyCode)}{" "}
|
||||
{intl.formatMessage({ id: "has been paid" })}
|
||||
</Body>
|
||||
<Body color="uiTextHighContrast">
|
||||
|
||||
Reference in New Issue
Block a user