Skip to content

Commit

Permalink
Merge pull request #303 from leedom92/add-confirm-when-remove-chatitem
Browse files Browse the repository at this point in the history
feat: add confirm tips when deleting conversation on pc
  • Loading branch information
Yidadaa authored Apr 1, 2023
2 parents ba08b10 + 4dc1e02 commit e6b64b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function ChatList() {
key={i}
selected={i === selectedIndex}
onClick={() => selectSession(i)}
onDelete={() => removeSession(i)}
onDelete={() => confirm(Locale.Home.DeleteChat) && removeSession(i)}
/>
))}
</div>
Expand Down

1 comment on commit e6b64b0

@vercel
Copy link

@vercel vercel bot commented on e6b64b0 Apr 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.