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