From 605945bd427e033d5c715b907ed1516d82a625d9 Mon Sep 17 00:00:00 2001 From: Ymir <36711026+Ymirke@users.noreply.github.com> Date: Sun, 16 Jun 2024 09:39:16 +0200 Subject: [PATCH] Added Thai Baht support (#5881) Hey, saw Thai Baht support was [requested](https://github.com/twentyhq/twenty/issues/5876) and thought it was a cool first issue to get to know the project a little bit. --- .../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 71e58d242..e039734d7 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 c84df4323..87729dd43 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 2855731a3..fe3ee7759 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,