forked from RiseUP/riseup-squad21
Icones atualizados
This commit is contained in:
parent
00632c6b42
commit
0310fb8ac2
@ -13,7 +13,7 @@ import { Input } from "@/components/ui/input";
|
|||||||
import { Badge } from "@/components/ui/badge";
|
import { Badge } from "@/components/ui/badge";
|
||||||
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
||||||
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";
|
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";
|
||||||
import { Search, Bell, Calendar, User, LogOut, ChevronLeft, ChevronRight, Home } from "lucide-react";
|
import { Search, Bell, Calendar, User, LogOut, ChevronLeft, ChevronRight, Home, CalendarCheck2, ClipboardPlus, SquareUserRound, CalendarClock, Users, SquareUser, ClipboardList, Stethoscope, ClipboardMinus } from "lucide-react";
|
||||||
import SidebarUserSection from "@/components/ui/userToolTip";
|
import SidebarUserSection from "@/components/ui/userToolTip";
|
||||||
|
|
||||||
interface UserData {
|
interface UserData {
|
||||||
@ -136,33 +136,33 @@ export default function Sidebar({ children }: SidebarProps) {
|
|||||||
const SetMenuItems = (role: any) => {
|
const SetMenuItems = (role: any) => {
|
||||||
const patientItems: MenuItem[] = [
|
const patientItems: MenuItem[] = [
|
||||||
{ href: "/patient/dashboard", icon: Home, label: "Dashboard" },
|
{ href: "/patient/dashboard", icon: Home, label: "Dashboard" },
|
||||||
{ href: "/patient/schedule", icon: Home, label: "Agendar Consulta" },
|
{ href: "/patient/schedule", icon: CalendarClock, label: "Agendar Consulta" },
|
||||||
{ href: "/patient/appointments", icon: Home, label: "Minhas Consultas" },
|
{ href: "/patient/appointments", icon: CalendarCheck2, label: "Minhas Consultas" },
|
||||||
{ href: "/patient/reports", icon: Home, label: "Meus Laudos" },
|
{ href: "/patient/reports", icon: ClipboardPlus, label: "Meus Laudos" },
|
||||||
{ href: "/patient/profile", icon: Home, label: "Meus Dados" },
|
{ href: "/patient/profile", icon: SquareUser, label: "Meus Dados" },
|
||||||
]
|
]
|
||||||
|
|
||||||
const doctorItems: MenuItem[] = [
|
const doctorItems: MenuItem[] = [
|
||||||
{ href: "/doctor/dashboard", icon: Home, label: "Dashboard" },
|
{ href: "/doctor/dashboard", icon: Home, label: "Dashboard" },
|
||||||
{ href: "/doctor/medicos", icon: User, label: "Gestão de Pacientes" },
|
{ href: "/doctor/medicos", icon: Users, label: "Gestão de Pacientes" },
|
||||||
{ href: "/doctor/consultas", icon: Calendar, label: "Consultas" },
|
{ href: "/doctor/consultas", icon: CalendarCheck2, label: "Consultas" },
|
||||||
{ href: "/doctor/disponibilidade", icon: User, label: "Disponibilidade" },
|
{ href: "/doctor/disponibilidade", icon: ClipboardList, label: "Disponibilidade" },
|
||||||
]
|
]
|
||||||
|
|
||||||
const secretaryItems: MenuItem[] = [
|
const secretaryItems: MenuItem[] = [
|
||||||
{ href: "/secretary/dashboard", icon: Home, label: "Dashboard" },
|
{ href: "/secretary/dashboard", icon: Home, label: "Dashboard" },
|
||||||
{ href: "/secretary/appointments", icon: Calendar, label: "Consultas" },
|
{ href: "/secretary/appointments", icon: CalendarCheck2, label: "Consultas" },
|
||||||
{ href: "/secretary/schedule", icon: Calendar, label: "Agendar Consulta" },
|
{ href: "/secretary/schedule", icon: CalendarClock, label: "Agendar Consulta" },
|
||||||
{ href: "/secretary/pacientes", icon: User, label: "Gestão de Pacientes" },
|
{ href: "/secretary/pacientes", icon: Users, label: "Gestão de Pacientes" },
|
||||||
]
|
]
|
||||||
|
|
||||||
const managerItems: MenuItem[] = [
|
const managerItems: MenuItem[] = [
|
||||||
{ href: "/manager/dashboard", icon: Home, label: "Dashboard" },
|
{ href: "/manager/dashboard", icon: Home, label: "Dashboard" },
|
||||||
{ href: "#", icon: Calendar, label: "Relatórios gerenciais" },
|
{ href: "#", icon: ClipboardMinus, label: "Relatórios gerenciais" },
|
||||||
{ href: "/manager/usuario", icon: User, label: "Gestão de Usuários" },
|
{ href: "/manager/usuario", icon: Users, label: "Gestão de Usuários" },
|
||||||
{ href: "/manager/home", icon: User, label: "Gestão de Médicos" },
|
{ href: "/manager/home", icon: Stethoscope, label: "Gestão de Médicos" },
|
||||||
{ href: "/manager/pacientes", icon: User, label: "Gestão de Pacientes" },
|
{ href: "/manager/pacientes", icon: Users, label: "Gestão de Pacientes" },
|
||||||
{ href: "/doctor/consultas", icon: Calendar, label: "Consultas" }, //adicionar botão de voltar pra pagina anterior
|
{ href: "/doctor/consultas", icon: CalendarCheck2, label: "Consultas" }, //adicionar botão de voltar pra pagina anterior
|
||||||
]
|
]
|
||||||
|
|
||||||
let menuItems: MenuItem[];
|
let menuItems: MenuItem[];
|
||||||
@ -191,23 +191,6 @@ export default function Sidebar({ children }: SidebarProps) {
|
|||||||
|
|
||||||
const menuItems = SetMenuItems(role)
|
const menuItems = SetMenuItems(role)
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
const menuItems = [
|
|
||||||
{ href: "/manager/dashboard", icon: Home, label: "Dashboard" },
|
|
||||||
{ href: "#", icon: Calendar, label: "Relatórios gerenciais" },
|
|
||||||
{ href: "/manager/usuario", icon: User, label: "Gestão de Usuários" },
|
|
||||||
{ href: "/manager/home", icon: User, label: "Gestão de Médicos" },
|
|
||||||
{ href: "/manager/pacientes", icon: User, label: "Gestão de Pacientes" },
|
|
||||||
{ href: "#", icon: User, label: "Disponibilidade" },
|
|
||||||
{ href: "#", icon: Calendar, label: "Consultas" },
|
|
||||||
{ href: "#", icon: Calendar, label: "Agendar Consulta S" },
|
|
||||||
{ href: "#", icon: Home, label: "Agendar Consulta P" },
|
|
||||||
{ href: "#", icon: Home, label: "Minhas Consultas" },
|
|
||||||
{ href: "#", icon: Home, label: "Meus Laudos" },
|
|
||||||
{ href: "#", icon: Home, label: "Meus Dados" },
|
|
||||||
]; */
|
|
||||||
|
|
||||||
if (!userData) {
|
if (!userData) {
|
||||||
return (
|
return (
|
||||||
<div className="flex h-screen w-full items-center justify-center">
|
<div className="flex h-screen w-full items-center justify-center">
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
|
import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Home, LogOut } from "lucide-react";
|
import { CalendarCheck2, CalendarClock, ClipboardPlus, Home, LogOut, SquareUser } from "lucide-react";
|
||||||
import {
|
import {
|
||||||
Popover,
|
Popover,
|
||||||
PopoverTrigger,
|
PopoverTrigger,
|
||||||
@ -36,10 +36,10 @@ export default function SidebarUserSection({
|
|||||||
}: Props) {
|
}: Props) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
const menuItems: any[] = [
|
const menuItems: any[] = [
|
||||||
{ href: "/patient/schedule", icon: Home, label: "Agendar Consulta" },
|
{ href: "/patient/schedule", icon: CalendarClock, label: "Agendar Consulta" },
|
||||||
{ href: "/patient/appointments", icon: Home, label: "Minhas Consultas" },
|
{ href: "/patient/appointments", icon: CalendarCheck2, label: "Minhas Consultas" },
|
||||||
{ href: "/patient/reports", icon: Home, label: "Meus Laudos" },
|
{ href: "/patient/reports", icon: ClipboardPlus, label: "Meus Laudos" },
|
||||||
{ href: "/patient/profile", icon: Home, label: "Meus Dados" },
|
{ href: "/patient/profile", icon: SquareUser, label: "Meus Dados" },
|
||||||
]
|
]
|
||||||
return (
|
return (
|
||||||
<div className="border-t p-4 mt-auto">
|
<div className="border-t p-4 mt-auto">
|
||||||
@ -118,7 +118,7 @@ export default function SidebarUserSection({
|
|||||||
onClick={handleLogout}
|
onClick={handleLogout}
|
||||||
>
|
>
|
||||||
<LogOut className={sidebarCollapsed ? "h-5 w-5" : "mr-2 h-4 w-4"} />
|
<LogOut className={sidebarCollapsed ? "h-5 w-5" : "mr-2 h-4 w-4"} />
|
||||||
{!sidebarCollapsed && "Sair"}
|
{sidebarCollapsed && "Sair"}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user