Skip to content

Commit

Permalink
Add South Korean won to currency codes (twentyhq#5914)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hanchchch authored Jun 18, 2024
1 parent 14abd99 commit 38537a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ export enum CurrencyCode {
MAD = 'MAD',
QAR = 'QAR',
AED = 'AED',
KRW = 'KRW',
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
IconCurrencyKroneSwedish,
IconCurrencyPound,
IconCurrencyRiyal,
IconCurrencyWon,
IconCurrencyYen,
IconCurrencyYuan,
} from 'twenty-ui';
Expand Down Expand Up @@ -79,4 +80,8 @@ export const SETTINGS_FIELD_CURRENCY_CODES: Record<
label: 'UAE dirham',
Icon: IconCurrencyDirham,
},
KRW: {
label: 'South Korean won',
Icon: IconCurrencyWon,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export {
IconCurrencyKroneSwedish,
IconCurrencyPound,
IconCurrencyRiyal,
IconCurrencyWon,
IconCurrencyYen,
IconCurrencyYuan,
IconDatabase,
Expand Down

0 comments on commit 38537a3

Please sign in to comment.