mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 20:52:14 +01:00
add project members to project show page
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
export function formatMoney(amount: number, currency: string) {
|
||||
export function formatMoney(
|
||||
amount: number,
|
||||
currency: string = getOrganizationCurrencyString()
|
||||
) {
|
||||
return new Intl.NumberFormat('en-US', {
|
||||
style: 'currency',
|
||||
currency: currency,
|
||||
}).format(amount);
|
||||
}
|
||||
|
||||
export function formatCents(amount: number) {
|
||||
return formatMoney(amount / 100);
|
||||
}
|
||||
|
||||
export function getOrganizationCurrencyString() {
|
||||
return 'EUR';
|
||||
}
|
||||
|
||||
export function getOrganizationCurrencySymbol() {
|
||||
return '€';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user