Skip to content

Commit

Permalink
Add new Currencies with Corresponding Icons (twentyhq#5353)
Browse files Browse the repository at this point in the history
### **Description**
Add 3 new currencies

### **Refs**
twentyhq#5351

### **Demo** 
<img width="678" alt="Screenshot 2024-05-11 at 1 30 55 AM"
src="https://github.com/twentyhq/twenty/assets/62111075/cc88ba46-cc5a-41d6-baf8-c28851c629ae">
  • Loading branch information
muhsinkamil committed May 13, 2024
1 parent eb2b896 commit 321ce72
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ export enum CurrencyCode {
HKD = 'HKD',
JPY = 'JPY',
USD = 'USD',
MAD = 'MAD',
QAR = 'QAR',
AED = 'AED',
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import {
IconComponent,
IconCurrencyDirham,
IconCurrencyDollar,
IconCurrencyEuro,
IconCurrencyFrank,
IconCurrencyPound,
IconCurrencyRiyal,
IconCurrencyYen,
IconCurrencyYuan,
} from 'twenty-ui';
Expand Down Expand Up @@ -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,
},
};
2 changes: 2 additions & 0 deletions packages/twenty-ui/src/display/icon/components/TablerIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ export {
IconMessageCircle as IconComment,
IconCopy,
IconCreditCard,
IconCurrencyDirham,
IconCurrencyDollar,
IconCurrencyEuro,
IconCurrencyFrank,
IconCurrencyPound,
IconCurrencyRiyal,
IconCurrencyYen,
IconCurrencyYuan,
IconDatabase,
Expand Down

0 comments on commit 321ce72

Please sign in to comment.