mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
remove unused var, change from kr to SEK
This commit is contained in:
parent
92cb1b6174
commit
f3b9c83e55
@ -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))}`}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user