mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-27 05:07:50 +02:00
♻️ Remove headlessui (#1124)
This commit is contained in:
parent
efa4f03353
commit
e9fb86516d
12 changed files with 182 additions and 327 deletions
|
@ -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];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue