mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
remove unused import
This commit is contained in:
parent
942418298e
commit
36f204958e
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue