♻️ Remove headlessui (#1124)

This commit is contained in:
Luke Vella 2024-05-29 15:01:40 +12:00 committed by GitHub
parent efa4f03353
commit e9fb86516d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 182 additions and 327 deletions

View file

@ -25,12 +25,3 @@ export const useModal = (
);
return [modal, () => setVisible(true), () => setVisible(false)];
};
export const useModalState = (): [boolean, OpenModalFn, CloseModalFn] => {
const [visible, setVisible] = React.useState(false);
const hide = React.useCallback(() => setVisible(false), []);
const show = React.useCallback(() => setVisible(true), []);
return [visible, show, hide];
};