Fix a issue that ui will crash when first entering history view

pull/1420/head
LASER-Yi 3 years ago
parent 833ecb34e8
commit 7b9c19d7c0

@ -1,5 +1,5 @@
import { useCallback } from "react"; import { useCallback } from "react";
import { useLocalstorage } from "rooks"; import { useLocalstorageState } from "rooks";
export const uiPageSizeKey = "storage-ui-pageSize"; export const uiPageSizeKey = "storage-ui-pageSize";
@ -13,5 +13,5 @@ export function useUpdateLocalStorage() {
} }
export function usePageSize() { export function usePageSize() {
return useLocalstorage(uiPageSizeKey, 50); return useLocalstorageState(uiPageSizeKey, 50);
} }

Loading…
Cancel
Save