mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-27 05:07:50 +02:00
⬆️ v3.0.0 (#704)
This commit is contained in:
parent
735056f25f
commit
c22b3abc4d
385 changed files with 19912 additions and 5250 deletions
|
@ -26,7 +26,7 @@ export const useModal = (
|
|||
return [modal, () => setVisible(true), () => setVisible(false)];
|
||||
};
|
||||
|
||||
export const useModalState = (): [boolean, () => void, () => void] => {
|
||||
export const useModalState = (): [boolean, OpenModalFn, CloseModalFn] => {
|
||||
const [visible, setVisible] = React.useState(false);
|
||||
|
||||
const hide = React.useCallback(() => setVisible(false), []);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue