Skip to content

The open alternative to Salesforce, designed for AI.

Add new Currencies with Corresponding Icons (#5353)

Mohamed Muhsin321ce72ec7a9
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 89afeca90cc..419be560ec6 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,4 +7,7 @@ export enum CurrencyCode {
HKD = 'HKD',
JPY = 'JPY',
USD = 'USD',
+ 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 24616022159..fa95f111e40 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,9 +1,11 @@
import {
IconComponent,
+ IconCurrencyDirham,
IconCurrencyDollar,
IconCurrencyEuro,
IconCurrencyFrank,
IconCurrencyPound,
+ IconCurrencyRiyal,
IconCurrencyYen,
IconCurrencyYuan,
} from 'twenty-ui';
@@ -46,4 +48,16 @@ export const SETTINGS_FIELD_CURRENCY_CODES: Record<
label: 'Hong Kong dollar',
Icon: IconCurrencyDollar,
},
+ MAD: {
+ label: 'Moroccan dirham',
+ Icon: IconCurrencyDirham,
+ },
+ QAR: {
+ label: 'Qatari riyal',
+ Icon: IconCurrencyRiyal,
+ },
+ AED: {
+ label: 'UAE 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 3f16a342cf5..ba3282c2a1b 100644
--- a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts
+++ b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts
@@ -50,10 +50,12 @@ export {
IconMessageCircle as IconComment,
IconCopy,
IconCreditCard,
+ IconCurrencyDirham,
IconCurrencyDollar,
IconCurrencyEuro,
IconCurrencyFrank,
IconCurrencyPound,
+ IconCurrencyRiyal,
IconCurrencyYen,
IconCurrencyYuan,
IconDatabase,