Replies: 1 comment
-
make the click on export function YourComponent(){
const [deletingItem, setDeletingItem]= useState(false)
return (
<button type="button" onClick={()=>setDeletingItem(true)}> Delete </button>
<ConfirmationModal isOpen={deletingItem} onClose={()=>setDeletingItem(false)} >
You are about to delete ......, Are you sure ?
<button type='button' onClick={()=>setDeletingItem(false)}>Cancel </button>
<button type='submit' value={itemId} name="itemId">Confirm </button>
</ ConfirmationModal>
)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How we implementing custom( not window.confirm ) for actions like Delete, especially for multiple forms
Beta Was this translation helpful? Give feedback.
All reactions