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:
parent
85641741cf
commit
7c1d1efd4e
@ -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)}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user