diff options
Diffstat (limited to 'modern/src/common')
-rw-r--r-- | modern/src/common/theme/dimensions.js | 6 | ||||
-rw-r--r-- | modern/src/common/util/usePersistedState.js | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/modern/src/common/theme/dimensions.js b/modern/src/common/theme/dimensions.js index d68a94f5..c5974ec3 100644 --- a/modern/src/common/theme/dimensions.js +++ b/modern/src/common/theme/dimensions.js @@ -1,6 +1,4 @@ export default { - inputHeight: '42px', - borderRadius: '4px', sidebarWidth: '28%', sidebarWidthTablet: '52px', drawerWidthDesktop: '360px', @@ -8,10 +6,6 @@ export default { drawerHeightPhone: '250px', filterFormWidth: '160px', bottomBarHeight: 56, - columnWidthDate: 160, - columnWidthNumber: 130, - columnWidthString: 160, - columnWidthBoolean: 130, popupMapOffset: 300, popupMaxWidth: 272, }; diff --git a/modern/src/common/util/usePersistedState.js b/modern/src/common/util/usePersistedState.js index 8bc4401f..70a652ad 100644 --- a/modern/src/common/util/usePersistedState.js +++ b/modern/src/common/util/usePersistedState.js @@ -11,7 +11,11 @@ export default (key, defaultValue) => { }); useEffect(() => { - savePersistedState(key, value); + if (value !== defaultValue) { + savePersistedState(key, value); + } else { + window.localStorage.removeItem(key); + } }, [key, value]); return [value, setValue]; |