-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
As such:
We need to be able to customize
- Title
- Children
- Buttons
It would be cool to be able to use the same logic as the built in modals of cunningham as such with an await:
export const ConfirmationModal = {
render: () => {
const modals = useModals();
const ask = async () => {
const decision = await modals.confirmationModal();
alert(`You decided ${decision}`);
};
useEffect(() => {
ask();
}, []);
return <Button onClick={ask}>Open</Button>;
},
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels