This commit is contained in:
Quan HL
2023-10-25 06:13:45 +07:00
parent acd8fa9d45
commit 3a48a75ce9
+4 -5
View File
@@ -85,15 +85,14 @@ export const CallHistoryItem = ({
{dayjs(call.timeStamp).format("MMM D, hh:mm A")} {dayjs(call.timeStamp).format("MMM D, hh:mm A")}
</Text> </Text>
</VStack> </VStack>
<Tooltip <Tooltip label={isSaved && call.isSaved ? "Delete" : "Save"}>
label={
isSaved && call.isSaved ? "Delete" : call.isSaved ? "Unsaved" : "Save"
}
>
<IconButton <IconButton
aria-label="save recents" aria-label="save recents"
icon={isSaved && call.isSaved ? <Trash2 /> : <Save />} icon={isSaved && call.isSaved ? <Trash2 /> : <Save />}
onClick={() => { onClick={() => {
if (!isSaved && call.isSaved) {
return;
}
const settings = getSettings(); const settings = getSettings();
if (settings.sipUsername) { if (settings.sipUsername) {
isSaveCallHistory( isSaveCallHistory(