Merge pull request #303 from leedom92/add-confirm-when-remove-chatitem

feat: add confirm tips when deleting conversation on pc
This commit is contained in:
Yifei Zhang 2023-04-01 13:08:06 +08:00 committed by GitHub
commit e6b64b0f2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>