chore: update dialog title from "Rename Title" to "Rename Thread"
This commit is contained in:
parent
837d3ab0e3
commit
06ba2f178b
@ -221,9 +221,9 @@ const LeftPanel = () => {
|
|||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>Delete Thread</DialogTitle>
|
<DialogTitle>Delete All Threads</DialogTitle>
|
||||||
<DialogDescription>
|
<DialogDescription>
|
||||||
Are you sure you want to delete this thread?
|
All threads will be deleted.
|
||||||
This action cannot be undone.
|
This action cannot be undone.
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
<DialogFooter className="mt-2">
|
<DialogFooter className="mt-2">
|
||||||
@ -241,10 +241,10 @@ const LeftPanel = () => {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
deleteAllThreads()
|
deleteAllThreads()
|
||||||
toast.success('Delete All Thread', {
|
toast.success('Delete All Threads', {
|
||||||
id: 'delete-thread',
|
id: 'delete-all-thread',
|
||||||
description:
|
description:
|
||||||
'All thread has been permanently deleted.',
|
'All threads have been permanently deleted.',
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
navigate({ to: route.home })
|
navigate({ to: route.home })
|
||||||
|
|||||||
@ -153,7 +153,7 @@ const SortableItem = memo(({ thread }: { thread: Thread }) => {
|
|||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>Rename Title</DialogTitle>
|
<DialogTitle>Thread Title</DialogTitle>
|
||||||
<Input
|
<Input
|
||||||
value={title}
|
value={title}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
@ -180,7 +180,7 @@ const SortableItem = memo(({ thread }: { thread: Thread }) => {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
renameThread(thread.id, title)
|
renameThread(thread.id, title)
|
||||||
setOpenDropdown(false)
|
setOpenDropdown(false)
|
||||||
toast.success('Renema Title', {
|
toast.success('Rename Thread', {
|
||||||
id: 'rename-thread',
|
id: 'rename-thread',
|
||||||
description:
|
description:
|
||||||
"Thread title has been renamed to '" + title + "'",
|
"Thread title has been renamed to '" + title + "'",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user