From f76a00acd07c5b1ca566985926b0dbb69ad75b7e Mon Sep 17 00:00:00 2001 From: Antonio Date: Thu, 12 Feb 2026 10:52:19 +0100 Subject: [PATCH] fix: better icon for userLastCalls tab --- .../Modules/NethVoice/LastCalls/LastCall.tsx | 67 ++++++++++++------- .../NethVoice/LastCalls/LastCallsBox.tsx | 2 +- tailwind.config.js | 8 +++ 3 files changed, 52 insertions(+), 25 deletions(-) diff --git a/src/renderer/src/components/Modules/NethVoice/LastCalls/LastCall.tsx b/src/renderer/src/components/Modules/NethVoice/LastCalls/LastCall.tsx index 7e8aeb4c..e6ebf2e6 100644 --- a/src/renderer/src/components/Modules/NethVoice/LastCalls/LastCall.tsx +++ b/src/renderer/src/components/Modules/NethVoice/LastCalls/LastCall.tsx @@ -2,7 +2,11 @@ import { faUserPlus as AddUserIcon, faUsers as BadgeIcon, faCircleUser, + faArrowLeft, + faXmark, + IconDefinition, } from '@fortawesome/free-solid-svg-icons' +import { faMissed } from '@nethesis/nethesis-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { Avatar, Button } from '../../../Nethesis' import { NumberCaller } from '../../../NumberCaller' @@ -16,12 +20,6 @@ import { Badge } from '../../../Nethesis/Badge' import { useAccount } from '@renderer/hooks/useAccount' import { useNethlinkData } from '@renderer/store' import { usePhonebookModule } from '../PhonebookModule/hook/usePhonebookModule' -import { - OutCallAnsweredIcon, - OutCallNotAnsweredIcon, - InCallAnsweredIcon, - InCallNotAnsweredIcon, -} from '@renderer/icons' import classNames from 'classnames' export interface LastCallProps { @@ -103,9 +101,7 @@ export function LastCall({ const isFromQueue = Boolean(call.channel?.includes('from-queue')) return ( -
+
@@ -191,26 +187,49 @@ export function LastCall({ className='flex flex-row gap-2 items-center' data-tooltip-id={`call_${tooltipId}`} data-tooltip-content={ - call.disposition === 'NO ANSWER' + call.disposition === 'ANSWERED' ? call.direction === 'in' - ? t('History.Incoming missed') - : t('History.Outgoing missed') - : call.direction === 'in' ? t('History.Incoming answered') : t('History.Outgoing answered') + : call.direction === 'in' + ? t('History.Incoming missed') + : t('History.Outgoing missed') } > -
- {call.disposition === 'NO ANSWER' ? ( - call.direction === 'in' ? ( - - ) : ( - - ) - ) : call.direction === 'in' ? ( - - ) : ( - +
+ {call.direction === 'in' && ( +
+ {call.disposition === 'ANSWERED' ? ( +
+ )} + {call.direction === 'out' && ( +
+ {call.disposition === 'ANSWERED' ? ( +
)}
0 ? ( preparedCalls.map((preparedCall, idx) => { - const callKey = preparedCall.uniqueid ?? String(idx) + const callKey = `${preparedCall?.uniqueid}_${idx}` return (