TWNTY-3825 - ESLint rule: const naming (#4171)
* ESLint rule: const naming Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev> * Refactor according to review Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev> * refactor: Reverts changes on `twenty-server` Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev> Co-authored-by: v1b3m <vibenjamin6@gmail.com> --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev>
This commit is contained in:
committed by
GitHub
parent
a108d36040
commit
f543191552
@ -0,0 +1,48 @@
|
||||
import { CurrencyCode } from '@/object-record/record-field/types/CurrencyCode';
|
||||
import {
|
||||
IconCurrencyDollar,
|
||||
IconCurrencyEuro,
|
||||
IconCurrencyFrank,
|
||||
IconCurrencyPound,
|
||||
IconCurrencyYen,
|
||||
IconCurrencyYuan,
|
||||
} from '@/ui/display/icon';
|
||||
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
|
||||
|
||||
export const SETTINGS_FIELD_CURRENCY_CODES: Record<
|
||||
CurrencyCode,
|
||||
{ label: string; Icon: IconComponent }
|
||||
> = {
|
||||
USD: {
|
||||
label: 'United States dollar',
|
||||
Icon: IconCurrencyDollar,
|
||||
},
|
||||
EUR: {
|
||||
label: 'Euro',
|
||||
Icon: IconCurrencyEuro,
|
||||
},
|
||||
JPY: {
|
||||
label: 'Japanese yen',
|
||||
Icon: IconCurrencyYen,
|
||||
},
|
||||
GBP: {
|
||||
label: 'British pound',
|
||||
Icon: IconCurrencyPound,
|
||||
},
|
||||
CAD: {
|
||||
label: 'Canadian dollar',
|
||||
Icon: IconCurrencyDollar,
|
||||
},
|
||||
CHF: {
|
||||
label: 'Swiss franc',
|
||||
Icon: IconCurrencyFrank,
|
||||
},
|
||||
CNY: {
|
||||
label: 'Chinese yuan',
|
||||
Icon: IconCurrencyYuan,
|
||||
},
|
||||
HKD: {
|
||||
label: 'Hong Kong dollar',
|
||||
Icon: IconCurrencyDollar,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user