mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
fix: restore KPI card icons on live monitor page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { useEffect, useMemo, useState } from 'react';
|
import { useEffect, useMemo, useState } from 'react';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { faHeadset } from '@fortawesome/pro-duotone-svg-icons';
|
import { faHeadset, faPhoneVolume, faPause, faClock } from '@fortawesome/pro-duotone-svg-icons';
|
||||||
import { TopBar } from '@/components/layout/top-bar';
|
import { TopBar } from '@/components/layout/top-bar';
|
||||||
import { Badge } from '@/components/base/badges/badges';
|
import { Badge } from '@/components/base/badges/badges';
|
||||||
import { Button } from '@/components/base/buttons/button';
|
import { Button } from '@/components/base/buttons/button';
|
||||||
@@ -24,8 +24,9 @@ const formatDuration = (startTime: string): string => {
|
|||||||
return `${m}:${s.toString().padStart(2, '0')}`;
|
return `${m}:${s.toString().padStart(2, '0')}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
const KpiCard = ({ value, label }: { value: string | number; label: string }) => (
|
const KpiCard = ({ value, label, icon }: { value: string | number; label: string; icon: any }) => (
|
||||||
<div className="flex flex-1 flex-col items-center justify-center rounded-xl border border-secondary bg-primary py-6">
|
<div className="flex flex-1 flex-col items-center justify-center rounded-xl border border-secondary bg-primary py-6">
|
||||||
|
<FontAwesomeIcon icon={icon} className="size-5 text-fg-quaternary mb-2" />
|
||||||
<p className="text-3xl font-bold text-primary">{value}</p>
|
<p className="text-3xl font-bold text-primary">{value}</p>
|
||||||
<p className="text-xs text-tertiary mt-1">{label}</p>
|
<p className="text-xs text-tertiary mt-1">{label}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -89,9 +90,9 @@ export const LiveMonitorPage = () => {
|
|||||||
{/* KPI Cards */}
|
{/* KPI Cards */}
|
||||||
<div className="px-6 pt-5">
|
<div className="px-6 pt-5">
|
||||||
<div className="flex gap-4">
|
<div className="flex gap-4">
|
||||||
<KpiCard value={activeCalls.length} label="Active Calls" />
|
<KpiCard value={activeCalls.length} label="Active Calls" icon={faPhoneVolume} />
|
||||||
<KpiCard value={onHold} label="On Hold" />
|
<KpiCard value={onHold} label="On Hold" icon={faPause} />
|
||||||
<KpiCard value={avgDuration} label="Avg Duration" />
|
<KpiCard value={avgDuration} label="Avg Duration" icon={faClock} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user