Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/screens/compliance-call-queue.screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ export default function ComplianceCallQueueScreen(): JSX.Element {
const showIp = queue === CallQueue.MANUAL_CHECK_IP_PHONE || queue === CallQueue.MANUAL_CHECK_IP_COUNTRY_PHONE;
const showCountry = queue === CallQueue.MANUAL_CHECK_IP_COUNTRY_PHONE || queue === CallQueue.UNAVAILABLE_SUSPICIOUS;
const showStatus = queue === CallQueue.UNAVAILABLE_SUSPICIOUS;
const showPhoneCallTimes =
queue === CallQueue.MANUAL_CHECK_PHONE || queue === CallQueue.MANUAL_CHECK_IP_COUNTRY_PHONE;

const columnCount = 5 + [isTxQueue, showIp, showCountry, showStatus].filter(Boolean).length;
const columnCount = 5 + [isTxQueue, showIp, showCountry, showStatus, showPhoneCallTimes].filter(Boolean).length;

useEffect(() => {
if (!isLoggedIn || !queue) return;
Expand Down Expand Up @@ -99,6 +101,11 @@ export default function ComplianceCallQueueScreen(): JSX.Element {
<th className="px-4 py-3 text-left text-sm font-semibold text-dfxBlue-800">
{translate('screens/compliance', 'Date')}
</th>
{showPhoneCallTimes && (
<th className="px-4 py-3 text-left text-sm font-semibold text-dfxBlue-800">
{translate('screens/compliance', 'Phone Call Times')}
</th>
)}
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -134,6 +141,9 @@ export default function ComplianceCallQueueScreen(): JSX.Element {
<td className="px-4 py-3 text-left text-sm text-dfxBlue-800">
{new Date(item.date).toLocaleDateString('de-CH')}
</td>
{showPhoneCallTimes && (
<td className="px-4 py-3 text-left text-sm text-dfxBlue-800">{item.phoneCallTimes || '-'}</td>
)}
</tr>
))
) : (
Expand Down