1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-03-04 02:18:12 +00:00

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

This commit is contained in:
LASER-Yi 2021-05-29 09:54:34 +08:00
parent 833ecb34e8
commit 7b9c19d7c0

View file

@ -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);
} }