feat: add confirm tips when deleting conversation on pc

This commit is contained in:
leedom 2023-04-01 10:24:06 +08:00
parent ba08b10de1
commit 4dc1e025e1

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>