- added bando preview page;
- added bando form preview;
This commit is contained in:
11
src/helpers/getNumberWithCurrency.js
Normal file
11
src/helpers/getNumberWithCurrency.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const getNumberWithCurrency = (value, currency = 'EUR') => {
|
||||
const formatter = Intl.NumberFormat('it-IT', {
|
||||
style: 'currency',
|
||||
currencyDisplay: 'symbol',
|
||||
currency
|
||||
})
|
||||
|
||||
return formatter.format(value)
|
||||
}
|
||||
|
||||
export default getNumberWithCurrency;
|
||||
Reference in New Issue
Block a user