mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-03-27 15:55:55 +00:00
fix retrieving settings from localstorage
This commit is contained in:
parent
afa1ca9627
commit
2f756f5c2d
@ -391,7 +391,7 @@ function App() {
|
|||||||
const [rootHeight, setRootHeight] = useState("100%");
|
const [rootHeight, setRootHeight] = useState("100%");
|
||||||
const [isSettingsOpen, setIsSettingsOpen] = useState(false);
|
const [isSettingsOpen, setIsSettingsOpen] = useState(false);
|
||||||
const qortalRequestCheckbox1Ref = useRef(null);
|
const qortalRequestCheckbox1Ref = useRef(null);
|
||||||
useRetrieveDataLocalStorage()
|
useRetrieveDataLocalStorage(userInfo?.address)
|
||||||
useQortalGetSaveSettings(userInfo?.name, extState === "authenticated")
|
useQortalGetSaveSettings(userInfo?.name, extState === "authenticated")
|
||||||
const [fullScreen, setFullScreen] = useRecoilState(fullScreenAtom);
|
const [fullScreen, setFullScreen] = useRecoilState(fullScreenAtom);
|
||||||
const resetAtomIsUsingImportExportSettingsAtom = useResetRecoilState(isUsingImportExportSettingsAtom)
|
const resetAtomIsUsingImportExportSettingsAtom = useResetRecoilState(isUsingImportExportSettingsAtom)
|
||||||
|
@ -16,7 +16,7 @@ function fetchFromLocalStorage(key) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useRetrieveDataLocalStorage = () => {
|
export const useRetrieveDataLocalStorage = (address) => {
|
||||||
const setSortablePinnedApps = useSetRecoilState(sortablePinnedAppsAtom);
|
const setSortablePinnedApps = useSetRecoilState(sortablePinnedAppsAtom);
|
||||||
const setSettingsLocalLastUpdated = useSetRecoilState(settingsLocalLastUpdatedAtom);
|
const setSettingsLocalLastUpdated = useSetRecoilState(settingsLocalLastUpdatedAtom);
|
||||||
const setIsUsingImportExportSettings = useSetRecoilState(isUsingImportExportSettingsAtom)
|
const setIsUsingImportExportSettings = useSetRecoilState(isUsingImportExportSettingsAtom)
|
||||||
@ -51,6 +51,6 @@ export const useRetrieveDataLocalStorage = () => {
|
|||||||
|
|
||||||
getSortablePinnedApps()
|
getSortablePinnedApps()
|
||||||
getSortablePinnedAppsImportExport()
|
getSortablePinnedAppsImportExport()
|
||||||
}, [getSortablePinnedApps])
|
}, [getSortablePinnedApps, address])
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user