mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
Linting and Formatting
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { useAuth } from '@/providers/auth-provider';
|
||||
import { LeadWorkspacePage } from '@/pages/lead-workspace';
|
||||
import { TeamDashboardPage } from '@/pages/team-dashboard';
|
||||
import { CallDeskPage } from '@/pages/call-desk';
|
||||
import { CallDeskPage } from "@/pages/call-desk";
|
||||
import { LeadWorkspacePage } from "@/pages/lead-workspace";
|
||||
import { TeamDashboardPage } from "@/pages/team-dashboard";
|
||||
import { useAuth } from "@/providers/auth-provider";
|
||||
|
||||
export const RoleRouter = () => {
|
||||
const { user } = useAuth();
|
||||
|
||||
switch (user.role) {
|
||||
case 'admin':
|
||||
case "admin":
|
||||
return <TeamDashboardPage />;
|
||||
case 'cc-agent':
|
||||
case "cc-agent":
|
||||
return <CallDeskPage />;
|
||||
default:
|
||||
return <LeadWorkspacePage />;
|
||||
|
||||
Reference in New Issue
Block a user