Schema filtering and a bunch of fixes

This commit is contained in:
Gregory Schier committed 2025-07-09 12:39:27 -07:00
1 parent a03ec8875c
commit 036e85d006
6 files changed
+473 -129

No files matched your search

+1 -1
View File
@@ -3,5 +3,5 @@ import { useCallback, useState } from 'react';
export function useToggle(initialValue = false) {
const [value, setValue] = useState<boolean>(initialValue);
const toggle = useCallback(() => setValue((v) => !v), []);
return [value, toggle] as const;
return [value, toggle, setValue] as const;
}