ConfirmDeleteModal
ConfirmDeleteModal
is a React component that displays a modal form to confirm deleting a tag.
Demo
Usage
<ConfirmDeleteModal
tag={{
id: 'ea837e28-509b-4b6a-a600-d54b6aa0b1f5',
name: 'Tag Name'
}}
/>
Properties
onClose
: function
onClose
: functionCallback. Triggered when the modal form is closed, for example, after clicking the "Cancel" button or after successful tag removal.
onDelete
: function
onDelete
: functionCallback. Triggered after successful tag removal.
tag
: object (required)
tag
: object (required)Contains two fields:
id
(string) - the UUID of an existing tag you want to delete.name
(string) - the tag name to display in the prompt.
Updated 5 days ago