remove unused import

This commit is contained in:
Corwin 2024-04-04 19:51:49 +01:00
parent 942418298e
commit 36f204958e
No known key found for this signature in database

View file

@ -1,4 +1,4 @@
import { useCallback, useEffect, useState } from "react";
import { useCallback, useState } from "react";
export const useLocalStorage = <T>(
defaultValue: T,
@ -21,7 +21,7 @@ export const useLocalStorage = <T>(
setValue(newValue);
try {
localStorage.setItem(appName, JSON.stringify(newValue));
} catch {}
} catch { }
}, []);
return [value, setStoredValue];