- added bando preview page;

- added bando form preview;
This commit is contained in:
Vitalii Kiiko
2024-08-27 17:02:16 +02:00
parent 5095ed7365
commit 87684bc76b
37 changed files with 1235 additions and 246 deletions

View File

@@ -0,0 +1,6 @@
const getDateFromISOstring = (value, options = {}) => {
const optionsMerged = options || { day: '2-digit', month: '2-digit', year: 'numeric', dateStyle: 'short' }
return Intl.DateTimeFormat('it-IT', optionsMerged).format(new Date(value))
}
export default getDateFromISOstring;

View File

@@ -0,0 +1,5 @@
const getNumberFormatted = (value) => {
return Intl.NumberFormat('it-IT', { minimumFractionDigits: 2 }).format(value);
}
export default getNumberFormatted;

View 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;