mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-09 15:35:39 +02:00
feat(currency): add Indonesian Rupiah (IDR) support (#1869)
Adds IDR with Rp symbol to the supported currencies list, available
in Settings → Cost Tracking.
This commit is contained in:
-2740
File diff suppressed because one or more lines are too long
@@ -57,7 +57,11 @@ describe('SUPPORTED_CURRENCIES', () => {
|
||||
expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'BZD')).toBeDefined();
|
||||
});
|
||||
|
||||
it('has 30 entries', () => {
|
||||
expect(SUPPORTED_CURRENCIES).toHaveLength(30);
|
||||
it('contains IDR', () => {
|
||||
expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'IDR')).toBeDefined();
|
||||
});
|
||||
|
||||
it('has 31 entries', () => {
|
||||
expect(SUPPORTED_CURRENCIES).toHaveLength(31);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -29,6 +29,7 @@ const CURRENCY_SYMBOLS: Record<string, string> = {
|
||||
HUF: 'Ft',
|
||||
ILS: '₪',
|
||||
UAH: '₴',
|
||||
IDR: 'Rp',
|
||||
};
|
||||
|
||||
export function getCurrencySymbol(currencyCode: string): string {
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -26,7 +26,7 @@
|
||||
|
||||
<!-- Splash screens for iOS -->
|
||||
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
|
||||
<script type="module" crossorigin src="/assets/index-DDY1oW0X.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DxxKVIUT.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BxVhuRti.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user