Skip to content

Commit

Permalink
set hover classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Jan 10, 2025
1 parent 86eba9b commit 3bd6a03
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/components/Patient/PatientDetailsTab/Appointments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,20 @@ export const Appointments = (props: PatientProps) => {

const getStatusBadge = (status: string) => {
const statusColors: Record<string, string> = {
booked: "bg-yellow-100 text-yellow-800",
checked_in: "bg-green-100 text-green-800",
cancelled: "bg-red-100 text-red-800",
booked:
"bg-yellow-100 text-yellow-800 hover:bg-yellow-200 hover:text-yellow-900",
checked_in:
"bg-green-100 text-green-800 hover:bg-green-200 hover:text-green-900",
cancelled: "bg-red-100 text-red-800 hover:bg-red-200 hover:text-red-900",
};

return (
<Badge className={statusColors[status] || "bg-gray-100 text-gray-800"}>
<Badge
className={
statusColors[status] ||
"bg-gray-100 text-gray-800 hover:bg-gray-200 hover:text-gray-900"
}
>
{status.replace("_", " ").toUpperCase()}
</Badge>
);
Expand Down

0 comments on commit 3bd6a03

Please sign in to comment.