mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-12 02:38:15 +00:00
Merge branch 'dev' into dev-kartik
This commit is contained in:
@@ -2,16 +2,20 @@ import { useState } from "react";
|
||||
import {
|
||||
faArrowRightFromBracket,
|
||||
faBullhorn,
|
||||
faCalendarCheck,
|
||||
faChartLine,
|
||||
faChartMixed,
|
||||
faChevronLeft,
|
||||
faChevronRight,
|
||||
faClockRotateLeft,
|
||||
faCommentDots,
|
||||
faFileAudio,
|
||||
faGear,
|
||||
faGrid2,
|
||||
faHospitalUser,
|
||||
faPhone,
|
||||
faPlug,
|
||||
faPhoneMissed,
|
||||
faTowerBroadcast,
|
||||
faUsers,
|
||||
} from "@fortawesome/pro-duotone-svg-icons";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
@@ -38,12 +42,16 @@ const IconGrid2 = faIcon(faGrid2);
|
||||
const IconBullhorn = faIcon(faBullhorn);
|
||||
const IconCommentDots = faIcon(faCommentDots);
|
||||
const IconChartMixed = faIcon(faChartMixed);
|
||||
const IconPlug = faIcon(faPlug);
|
||||
const IconGear = faIcon(faGear);
|
||||
const IconPhone = faIcon(faPhone);
|
||||
const IconClockRewind = faIcon(faClockRotateLeft);
|
||||
const IconUsers = faIcon(faUsers);
|
||||
const IconHospitalUser = faIcon(faHospitalUser);
|
||||
const IconCalendarCheck = faIcon(faCalendarCheck);
|
||||
const IconTowerBroadcast = faIcon(faTowerBroadcast);
|
||||
const IconChartLine = faIcon(faChartLine);
|
||||
const IconFileAudio = faIcon(faFileAudio);
|
||||
const IconPhoneMissed = faIcon(faPhoneMissed);
|
||||
|
||||
type NavSection = {
|
||||
label: string;
|
||||
@@ -53,21 +61,26 @@ type NavSection = {
|
||||
const getNavSections = (role: string): NavSection[] => {
|
||||
if (role === "admin") {
|
||||
return [
|
||||
{ label: "Overview", items: [{ label: "Team Dashboard", href: "/", icon: IconGrid2 }] },
|
||||
{
|
||||
label: "Management",
|
||||
label: "Supervisor",
|
||||
items: [
|
||||
{ label: "Campaigns", href: "/campaigns", icon: IconBullhorn },
|
||||
{ label: "Analytics", href: "/reports", icon: IconChartMixed },
|
||||
{ label: "Dashboard", href: "/", icon: IconGrid2 },
|
||||
{ label: "Team Performance", href: "/team-performance", icon: IconChartLine },
|
||||
{ label: "Live Call Monitor", href: "/live-monitor", icon: IconTowerBroadcast },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Admin",
|
||||
label: "Data & Reports",
|
||||
items: [
|
||||
{ label: "Integrations", href: "/integrations", icon: IconPlug },
|
||||
{ label: "Settings", href: "/settings", icon: IconGear },
|
||||
{ label: "Lead Master", href: "/leads", icon: IconUsers },
|
||||
{ label: "Patient Master", href: "/patients", icon: IconHospitalUser },
|
||||
{ label: "Appointment Master", href: "/appointments", icon: IconCalendarCheck },
|
||||
{ label: "Call Log Master", href: "/call-history", icon: IconClockRewind },
|
||||
{ label: "Call Recordings", href: "/call-recordings", icon: IconFileAudio },
|
||||
{ label: "Missed Calls", href: "/missed-calls", icon: IconPhoneMissed },
|
||||
],
|
||||
},
|
||||
{ label: "Admin", items: [{ label: "Settings", href: "/settings", icon: IconGear }] },
|
||||
];
|
||||
}
|
||||
|
||||
@@ -79,6 +92,7 @@ const getNavSections = (role: string): NavSection[] => {
|
||||
{ label: "Call Desk", href: "/", icon: IconPhone },
|
||||
{ label: "Call History", href: "/call-history", icon: IconClockRewind },
|
||||
{ label: "Patients", href: "/patients", icon: IconHospitalUser },
|
||||
{ label: "Appointments", href: "/appointments", icon: IconCalendarCheck },
|
||||
{ label: "My Performance", href: "/my-performance", icon: IconChartMixed },
|
||||
],
|
||||
},
|
||||
@@ -92,6 +106,7 @@ const getNavSections = (role: string): NavSection[] => {
|
||||
{ label: "Lead Workspace", href: "/", icon: IconGrid2 },
|
||||
{ label: "All Leads", href: "/leads", icon: IconUsers },
|
||||
{ label: "Patients", href: "/patients", icon: IconHospitalUser },
|
||||
{ label: "Appointments", href: "/appointments", icon: IconCalendarCheck },
|
||||
{ label: "Campaigns", href: "/campaigns", icon: IconBullhorn },
|
||||
{ label: "Outreach", href: "/outreach", icon: IconCommentDots },
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user