refactor: remove deprecated components and streamline member coverage calculations, enhance budget management with improved payroll handling, and update UI elements for better clarity
This commit is contained in:
parent
983aeca2dc
commit
09d8794d72
42 changed files with 2166 additions and 2974 deletions
23
utils/currency.ts
Normal file
23
utils/currency.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
export interface CurrencyOption {
|
||||
code: string;
|
||||
symbol: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export const currencyOptions: CurrencyOption[] = [
|
||||
{ code: 'USD', symbol: '$', name: 'US Dollar' },
|
||||
{ code: 'EUR', symbol: '€', name: 'Euro' },
|
||||
{ code: 'GBP', symbol: '£', name: 'British Pound' },
|
||||
{ code: 'CAD', symbol: 'C$', name: 'Canadian Dollar' },
|
||||
{ code: 'AUD', symbol: 'A$', name: 'Australian Dollar' },
|
||||
{ code: 'CHF', symbol: 'CHF', name: 'Swiss Franc' },
|
||||
{ code: 'JPY', symbol: '¥', name: 'Japanese Yen' },
|
||||
{ code: 'SEK', symbol: 'kr', name: 'Swedish Krona' },
|
||||
{ code: 'NOK', symbol: 'kr', name: 'Norwegian Krone' },
|
||||
{ code: 'DKK', symbol: 'kr', name: 'Danish Krone' },
|
||||
];
|
||||
|
||||
export function getCurrencySymbol(currencyCode: string): string {
|
||||
const currency = currencyOptions.find(c => c.code === currencyCode);
|
||||
return currency?.symbol || currencyCode;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue