mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
use for-of statements to replace for and for-in
This commit is contained in:
@@ -1284,5 +1284,5 @@ export const ALL_CURRENCIES: Record<string, CurrencyInfo> = {
|
||||
};
|
||||
|
||||
export const DEFAULT_CURRENCY_SYMBOL: string = '¤';
|
||||
export const DEFAULT_CURRENCY_CODE: string = ALL_CURRENCIES['USD'].code;
|
||||
export const DEFAULT_CURRENCY_CODE: string = (ALL_CURRENCIES['USD'] as CurrencyInfo).code;
|
||||
export const PARENT_ACCOUNT_CURRENCY_PLACEHOLDER: string = '---';
|
||||
|
||||
+2
-2
@@ -161,7 +161,7 @@ export const ALL_ACCOUNT_ICONS: Record<string, IconInfo> = {
|
||||
}
|
||||
};
|
||||
|
||||
export const DEFAULT_ACCOUNT_ICON = ALL_ACCOUNT_ICONS[DEFAULT_ACCOUNT_ICON_ID];
|
||||
export const DEFAULT_ACCOUNT_ICON: IconInfo = ALL_ACCOUNT_ICONS[DEFAULT_ACCOUNT_ICON_ID] as IconInfo;
|
||||
|
||||
export const DEFAULT_CATEGORY_ICON_ID = '1';
|
||||
export const AUTOMATICALLY_CREATED_CATEGORY_ICON_ID = '561';
|
||||
@@ -837,4 +837,4 @@ export const ALL_CATEGORY_ICONS: Record<string, IconInfo> = {
|
||||
}
|
||||
};
|
||||
|
||||
export const DEFAULT_CATEGORY_ICON = ALL_CATEGORY_ICONS[DEFAULT_CATEGORY_ICON_ID];
|
||||
export const DEFAULT_CATEGORY_ICON: IconInfo = ALL_CATEGORY_ICONS[DEFAULT_CATEGORY_ICON_ID] as IconInfo;
|
||||
|
||||
Reference in New Issue
Block a user