mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
enfore unix line endings and always ending files with line endings (#1997)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
64be4ee948
commit
2e2283bcc9
92 files changed
+97
-91
No files matched your search
@@ -16,4 +16,4 @@ export function useInterval(callback: () => void, delay: number) {
|
||||
|
||||
return () => clearInterval(id);
|
||||
}, [delay]);
|
||||
}
|
||||
}
|
||||
@@ -2,4 +2,4 @@ import { useEffect } from "react";
|
||||
|
||||
export function useOnUnmount(callback: () => void) {
|
||||
useEffect(() => callback, []);
|
||||
}
|
||||
}
|
||||
@@ -10,4 +10,4 @@ export function useStorage<T>(key: string, initialValue?: T, options?: IStorageH
|
||||
};
|
||||
|
||||
return [storageValue, setValue] as [T, (value: T) => void];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user