From 91b0c2bb8e8200a1a308780ccb6d7a65fa729795 Mon Sep 17 00:00:00 2001 From: Vitor Hugo Rodrigues <11232497+vitorhugoro1@users.noreply.github.com> Date: Sat, 22 Jun 2024 03:38:52 -0300 Subject: [PATCH] feat: add brazilian real currency (#5989) Added support to Brazilian Real currency code, added the new code on `CurrencyCode.ts` and on `SETTINGS_FIELD_CURRENCY_CODES` --- .../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 673b6b7cb..7d3fad584 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 @@ -15,4 +15,5 @@ export enum CurrencyCode { QAR = 'QAR', AED = 'AED', KRW = 'KRW', + BRL = 'BRL', } 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 da235b110..6f302e6ea 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 @@ -8,6 +8,7 @@ import { IconCurrencyKroneCzech, IconCurrencyKroneSwedish, IconCurrencyPound, + IconCurrencyReal, IconCurrencyRiyal, IconCurrencyWon, IconCurrencyYen, @@ -84,4 +85,8 @@ export const SETTINGS_FIELD_CURRENCY_CODES: Record< label: 'South Korean won', Icon: IconCurrencyWon, }, + BRL: { + label: 'Brazilian real', + Icon: IconCurrencyReal, + } }; diff --git a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts index c4262154c..9ff7c5008 100644 --- a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts +++ b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts @@ -60,6 +60,7 @@ export { IconCurrencyKroneCzech, IconCurrencyKroneSwedish, IconCurrencyPound, + IconCurrencyReal, IconCurrencyRiyal, IconCurrencyWon, IconCurrencyYen,