From 92acfe57a1ea869c4adda8c912f43221442bb237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Hilles=C3=B8y?= Date: Mon, 13 May 2024 09:55:57 +0200 Subject: [PATCH] feat: Currencies NOK and SEK (#5359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related to #5351 and #5353 Adding both currencies NOK and SEK, using icon https://tabler.io/icons/icon/currency-krone-swedish --------- Co-authored-by: FĂ©lix Malfait --- .../object-record/record-field/types/CurrencyCode.ts | 2 ++ .../data-model/constants/SettingsFieldCurrencyCodes.ts | 9 +++++++++ .../twenty-ui/src/display/icon/components/TablerIcons.ts | 1 + 3 files changed, 12 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 419be560ec6..e71b8a6744b 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 @@ -7,6 +7,8 @@ export enum CurrencyCode { HKD = 'HKD', JPY = 'JPY', USD = 'USD', + NOK = 'NOK', + SEK = 'SEK', 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 fa95f111e40..487ff6e0448 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 @@ -4,6 +4,7 @@ import { IconCurrencyDollar, IconCurrencyEuro, IconCurrencyFrank, + IconCurrencyKroneSwedish, IconCurrencyPound, IconCurrencyRiyal, IconCurrencyYen, @@ -48,6 +49,14 @@ export const SETTINGS_FIELD_CURRENCY_CODES: Record< label: 'Hong Kong dollar', Icon: IconCurrencyDollar, }, + NOK: { + label: 'Norwegian krone', + Icon: IconCurrencyKroneSwedish, + }, + SEK: { + label: 'Swedish krona', + Icon: IconCurrencyKroneSwedish, + }, 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 ba3282c2a1b..4067452b6ed 100644 --- a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts +++ b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts @@ -54,6 +54,7 @@ export { IconCurrencyDollar, IconCurrencyEuro, IconCurrencyFrank, + IconCurrencyKroneSwedish, IconCurrencyPound, IconCurrencyRiyal, IconCurrencyYen,