Add South Korean won to currency codes (#5914)

Greetings from Seoul! I found this amazing project a few days ago, and
trying to introduce it to my team. However there is a tiny but
significant problem, that South Korean won is not available in twenty.

So I added `KRW` to the enum `CurrencyCode` and the constant
`SETTINGS_FIELD_CURRENCY_CODES`. I tested it locally and apparently
works fine.
This commit is contained in:
Hanch Han
2024-06-18 18:14:31 +09:00
committed by GitHub
parent 14abd99bb7
commit 38537a3967
3 changed files with 7 additions and 0 deletions

View File

@ -14,4 +14,5 @@ export enum CurrencyCode {
MAD = 'MAD', MAD = 'MAD',
QAR = 'QAR', QAR = 'QAR',
AED = 'AED', AED = 'AED',
KRW = 'KRW',
} }

View File

@ -9,6 +9,7 @@ import {
IconCurrencyKroneSwedish, IconCurrencyKroneSwedish,
IconCurrencyPound, IconCurrencyPound,
IconCurrencyRiyal, IconCurrencyRiyal,
IconCurrencyWon,
IconCurrencyYen, IconCurrencyYen,
IconCurrencyYuan, IconCurrencyYuan,
} from 'twenty-ui'; } from 'twenty-ui';
@ -79,4 +80,8 @@ export const SETTINGS_FIELD_CURRENCY_CODES: Record<
label: 'UAE dirham', label: 'UAE dirham',
Icon: IconCurrencyDirham, Icon: IconCurrencyDirham,
}, },
KRW: {
label: 'South Korean won',
Icon: IconCurrencyWon,
},
}; };

View File

@ -61,6 +61,7 @@ export {
IconCurrencyKroneSwedish, IconCurrencyKroneSwedish,
IconCurrencyPound, IconCurrencyPound,
IconCurrencyRiyal, IconCurrencyRiyal,
IconCurrencyWon,
IconCurrencyYen, IconCurrencyYen,
IconCurrencyYuan, IconCurrencyYuan,
IconDatabase, IconDatabase,