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>( export const useLocalStorage = <T>(
defaultValue: T, defaultValue: T,
@ -21,7 +21,7 @@ export const useLocalStorage = <T>(
setValue(newValue); setValue(newValue);
try { try {
localStorage.setItem(appName, JSON.stringify(newValue)); localStorage.setItem(appName, JSON.stringify(newValue));
} catch {} } catch { }
}, []); }, []);
return [value, setStoredValue]; return [value, setStoredValue];