ConfirmDeleteModal

ConfirmDeleteModal is a React component that displays a modal form to confirm deleting a tag.

Demo

:arrow-right: View the demo

Usage

<ConfirmDeleteModal
  tag={{
    id: 'ea837e28-509b-4b6a-a600-d54b6aa0b1f5',
    name: 'Tag Name'
  }}
/>

Properties

onClose: function

Callback. Triggered when the modal form is closed, for example, after clicking the "Cancel" button or after successful tag removal.

onDelete: function

Callback. Triggered after successful tag removal.

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.