aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/usePersistedState.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/usePersistedState.js')
-rw-r--r--modern/src/common/usePersistedState.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/common/usePersistedState.js b/modern/src/common/usePersistedState.js
index a3a60d75..0a7a990e 100644
--- a/modern/src/common/usePersistedState.js
+++ b/modern/src/common/usePersistedState.js
@@ -1,7 +1,6 @@
import { useEffect, useState } from 'react';
-export const usePersistedState = (key, defaultValue) => {
-
+export default (key, defaultValue) => {
const [value, setValue] = useState(() => {
const stickyValue = window.localStorage.getItem(key);
return stickyValue ? JSON.parse(stickyValue) : defaultValue;