code refactor

This commit is contained in:
MaysWind
2021-02-06 21:40:33 +08:00
parent 411d9ea456
commit cadfd26280
4 changed files with 22 additions and 9 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import Cookies from 'js-cookie';
import currencyConstants from '../consts/currency.js';
import statisticsConstants from '../consts/statistics.js';
const settingsLocalStorageKey = 'lab_app_settings';
@@ -12,7 +13,7 @@ const defaultSettings = {
applicationLockWebAuthn: false,
autoUpdateExchangeRatesData: true,
thousandsSeparator: true,
currencyDisplayMode: 'symbol', // or 'none' or 'code' or 'name'
currencyDisplayMode: currencyConstants.defaultCurrencyDisplayMode,
showAmountInHomePage: true,
showAccountBalance: true,
statistics: {