remove unused var, change from kr to SEK

This commit is contained in:
June 2023-08-11 18:57:52 +02:00
parent 92cb1b6174
commit f3b9c83e55

View File

@ -1,8 +1,7 @@
const Price = ({ const Price = ({
amount, amount,
className, className,
currencyCode = 'SEK', currencyCode = 'SEK'
currencyCodeClassName
}: { }: {
amount: string; amount: string;
className?: string; className?: string;
@ -13,7 +12,7 @@ const Price = ({
{`${new Intl.NumberFormat('sv-SE', { {`${new Intl.NumberFormat('sv-SE', {
style: 'currency', style: 'currency',
currency: currencyCode, currency: currencyCode,
currencyDisplay: 'narrowSymbol', currencyDisplay: 'code',
minimumFractionDigits: 0, minimumFractionDigits: 0,
maximumFractionDigits: 0 maximumFractionDigits: 0
}).format(parseFloat(amount))}`} }).format(parseFloat(amount))}`}