diff --git a/web/packages/shared/hooks/useLocalState.tsx b/web/packages/shared/hooks/useLocalState.tsx index 359c3c6f1..f1fad09bc 100644 --- a/web/packages/shared/hooks/useLocalState.tsx +++ b/web/packages/shared/hooks/useLocalState.tsx @@ -1,11 +1,10 @@ import { LS_KEYS, getData, setData } from "@ente/shared/storage/localStorage"; -import type { Dispatch, SetStateAction } from "react"; import { useEffect, useState } from "react"; export function useLocalState( key: LS_KEYS, - initialValue?: T, -): [T, Dispatch>] { + initialValue: T, +): [T, (newValue: T) => void] { const [value, setValue] = useState(initialValue); useEffect(() => {