fix: enable enter command on dialog confirmation delete thread (#1218)

* fix: enable enter command on dialog confirmation delete thread

* fix: update copy delete thread dialog confirmation
This commit is contained in:
Faisal Amir 2023-12-27 15:38:04 +07:00 committed by GitHub
parent 85641741cf
commit 7c1d1efd4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,10 @@ export default function ThreadList() {
<ModalHeader> <ModalHeader>
<ModalTitle>Delete Thread</ModalTitle> <ModalTitle>Delete Thread</ModalTitle>
</ModalHeader> </ModalHeader>
<p>Are you sure you want to delete this thread?</p> <p>
Are you sure you want to delete this thread? This action
cannot be undone.
</p>
<ModalFooter> <ModalFooter>
<div className="flex gap-x-2"> <div className="flex gap-x-2">
<ModalClose asChild> <ModalClose asChild>
@ -169,6 +172,7 @@ export default function ThreadList() {
</ModalClose> </ModalClose>
<ModalClose asChild> <ModalClose asChild>
<Button <Button
autoFocus
themes="danger" themes="danger"
onClick={() => deleteThread(thread.id)} onClick={() => deleteThread(thread.id)}
> >