From a0af1589bc907163b59950ecc9c510731ffbdb17 Mon Sep 17 00:00:00 2001 From: Ymir <36711026+Ymirke@users.noreply.github.com> Date: Sat, 15 Jun 2024 14:13:48 +0200 Subject: [PATCH] Added thai baht support --- .../modules/object-record/record-field/types/CurrencyCode.ts | 1 + .../data-model/constants/SettingsFieldCurrencyCodes.ts | 5 +++++ .../twenty-ui/src/display/icon/components/TablerIcons.ts | 1 + 3 files changed, 7 insertions(+) diff --git a/packages/twenty-front/src/modules/object-record/record-field/types/CurrencyCode.ts b/packages/twenty-front/src/modules/object-record/record-field/types/CurrencyCode.ts index 71e58d242553..e039734d71df 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/types/CurrencyCode.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/types/CurrencyCode.ts @@ -10,6 +10,7 @@ export enum CurrencyCode { USD = 'USD', NOK = 'NOK', SEK = 'SEK', + BHT = 'BHT', MAD = 'MAD', QAR = 'QAR', AED = 'AED', diff --git a/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts b/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts index c84df4323d90..87729dd4341f 100644 --- a/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts +++ b/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts @@ -1,5 +1,6 @@ import { IconComponent, + IconCurrencyBaht, IconCurrencyDirham, IconCurrencyDollar, IconCurrencyEuro, @@ -62,6 +63,10 @@ export const SETTINGS_FIELD_CURRENCY_CODES: Record< label: 'Swedish krona', Icon: IconCurrencyKroneSwedish, }, + BHT: { + label: 'Thai Baht', + Icon: IconCurrencyBaht, + }, MAD: { label: 'Moroccan dirham', Icon: IconCurrencyDirham, diff --git a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts index 2855731a344b..fe3ee7759740 100644 --- a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts +++ b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts @@ -52,6 +52,7 @@ export { IconMessageCircle as IconComment, IconCopy, IconCreditCard, + IconCurrencyBaht, IconCurrencyDirham, IconCurrencyDollar, IconCurrencyEuro,