From 3de5ed3427fc575492beb568f755962295fb3014 Mon Sep 17 00:00:00 2001 From: Shashank Vishwakarma Date: Fri, 24 May 2024 21:41:08 +0530 Subject: [PATCH] Added: The support for CZK Currency (#5561) Added the Czech Koruna currency support. - Added the CZK to the currency code. - Set the desired CZK icon to `TablerIcons` to use it within the `twenty-ui` fixes: #5530 ![Screenshot (335)](https://github.com/twentyhq/twenty/assets/140178357/a19a60b8-2261-44b3-9ed2-5c35424631a1) ![Screenshot (336)](https://github.com/twentyhq/twenty/assets/140178357/20944e43-901c-4dda-b986-a47763fb5f9b) --- .../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 e71b8a674..71e58d242 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 @@ -2,6 +2,7 @@ export enum CurrencyCode { CAD = 'CAD', CHF = 'CHF', CNY = 'CNY', + CZK = 'CZK', EUR = 'EUR', GBP = 'GBP', HKD = 'HKD', 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 487ff6e04..53df2ab5c 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 @@ -5,6 +5,7 @@ import { IconCurrencyEuro, IconCurrencyFrank, IconCurrencyKroneSwedish, + IconCurrencyKroneCzech, IconCurrencyPound, IconCurrencyRiyal, IconCurrencyYen, @@ -45,6 +46,10 @@ export const SETTINGS_FIELD_CURRENCY_CODES: Record< label: 'Chinese yuan', Icon: IconCurrencyYuan, }, + CZK: { + label: 'Czech koruna', + Icon: IconCurrencyKroneCzech, + }, HKD: { label: 'Hong Kong dollar', Icon: IconCurrencyDollar, diff --git a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts index fe3573388..33a2df23f 100644 --- a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts +++ b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts @@ -57,6 +57,7 @@ export { IconCurrencyEuro, IconCurrencyFrank, IconCurrencyKroneSwedish, + IconCurrencyKroneCzech, IconCurrencyPound, IconCurrencyRiyal, IconCurrencyYen,