mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-04-01 18:15:54 +00:00
fix retrieving settings from localstorage
This commit is contained in:
parent
e00f9e3974
commit
09c447798c
@ -486,7 +486,7 @@ function App() {
|
|||||||
const [showSeed, setShowSeed] = useState(false)
|
const [showSeed, setShowSeed] = useState(false)
|
||||||
const [creationStep, setCreationStep] = useState(1)
|
const [creationStep, setCreationStep] = useState(1)
|
||||||
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 {getIndividualUserInfo} = useHandleUserInfo()
|
const {getIndividualUserInfo} = useHandleUserInfo()
|
||||||
|
@ -15,7 +15,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)
|
||||||
@ -50,6 +50,6 @@ export const useRetrieveDataLocalStorage = () => {
|
|||||||
|
|
||||||
getSortablePinnedApps()
|
getSortablePinnedApps()
|
||||||
getSortablePinnedAppsImportExport()
|
getSortablePinnedAppsImportExport()
|
||||||
}, [getSortablePinnedApps])
|
}, [getSortablePinnedApps, address])
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user