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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

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

View File

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

View File

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