Skip to content

Commit c056130

Browse files
bennypowerssimonwep
authored andcommitted
feat: add ILS
Adds Israeli Shekel currency Refactors AvailableCurrency
1 parent 69b4e7b commit c056130

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

src/store/state/types.ts

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const availableCurrencies = [
1414
'CHF',
1515
'CNY',
1616
'DKK',
17+
'ILS',
1718
'SEK',
1819
'NZD',
1920
'MXN',
@@ -30,35 +31,9 @@ export const availableCurrencies = [
3031
'PLN',
3132
'CRC',
3233
'IDR'
33-
];
34+
] as const;
3435

35-
export type AvailableCurrency =
36-
| 'USD'
37-
| 'EUR'
38-
| 'JPY'
39-
| 'GBP'
40-
| 'CZK'
41-
| 'AUD'
42-
| 'CAD'
43-
| 'CHF'
44-
| 'CNY'
45-
| 'DKK'
46-
| 'SEK'
47-
| 'NZD'
48-
| 'MXN'
49-
| 'SGD'
50-
| 'HKD'
51-
| 'NOK'
52-
| 'KRW'
53-
| 'TRY'
54-
| 'INR'
55-
| 'RUB'
56-
| 'BRL'
57-
| 'ZAR'
58-
| 'HUF'
59-
| 'PLN'
60-
| 'CRC'
61-
| 'IDR';
36+
export type AvailableCurrency = (typeof availableCurrencies)[number];
6237

6338
export interface Budget {
6439
id: string;

0 commit comments

Comments
 (0)