mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-02 13:51:48 +00:00
Migrated some common components and their dependencies to TS
This commit is contained in:
@@ -23,7 +23,7 @@ export const useStateFlagTimeout = (
|
||||
return [ flag, callback ];
|
||||
};
|
||||
|
||||
type ToggleResult = [ boolean, (flag: boolean) => void, () => void, () => void ];
|
||||
type ToggleResult = [ boolean, () => void, () => void, () => void ];
|
||||
|
||||
export const useToggle = (initialValue = false): ToggleResult => {
|
||||
const [ flag, setFlag ] = useState<boolean>(initialValue);
|
||||
|
||||
Reference in New Issue
Block a user