Closed Hardik21 closed 6 years ago
@Hardik21
The default UI for normal use case just call the function it.
Using the customUI to make your own confirmation box.
customUI
confirmAlert({ customUI: ({ onClose }) => { return ( <div className='custom-ui'> <h1>Are you sure?</h1> <p>You want to delete this file?</p> <button onClick={onClose}>No</button> <button onClick={() => { this.handleClickDelete() onClose() }}>Yes, Delete it!</button> </div> ) } })
@Hardik21
The default UI for normal use case just call the function it.
Using the
customUI
to make your own confirmation box.