mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-05 11:38:00 +00:00
Make codebase comply to knip --strict (#33893)
* Make codebase comply to `knip --strict` Deletes a few bits of dead code * Trim i18n strings * Fix missing export * Remove test of dead code
This commit is contained in:
committed by
GitHub
parent
5de654636a
commit
7a1a3f518c
@@ -17,7 +17,9 @@ const getValue = <T>(key: string, initialValue: T): T => {
|
||||
}
|
||||
};
|
||||
|
||||
// Hook behaving like useState but persisting the value to localStorage. Returns same as useState
|
||||
/**
|
||||
* Hook behaving like useState but persisting the value to localStorage. Returns same as useState
|
||||
*/
|
||||
export const useLocalStorageState = <T>(key: string, initialValue: T): [T, Dispatch<T>] => {
|
||||
const lsKey = "mx_" + key;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user