Skip to content

Commit

Permalink
revert PatientUsers
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Jan 27, 2025
1 parent 554e859 commit c85e1af
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/components/Patient/PatientDetailsTab/PatientUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ import {
SheetTitle,
SheetTrigger,
} from "@/components/ui/sheet";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";

import { Avatar } from "@/components/Common/Avatar";
import UserSelector from "@/components/Common/UserSelector";
Expand Down Expand Up @@ -241,7 +236,7 @@ export const PatientUsers = (props: PatientProps) => {
const ManageUsers = () => {
if (!users?.results?.length) {
return (
<div className="h-full text-center space-y-2 mt-2 rounded-lg bg-white px-7 py-12 border border-secondary-300 text-lg text-secondary-600">
<div className="h-full text-center space-y-2 mt-2 text-center rounded-lg bg-white px-7 py-12 border border-secondary-300 text-lg text-secondary-600">
{t("no_user_assigned")}
</div>
);
Expand All @@ -264,14 +259,7 @@ export const PatientUsers = (props: PatientProps) => {
<h3 className="text-sm font-medium text-gray-900">
{formatDisplayName(user)}
</h3>
<p className="text-sm text-gray-500 truncate sm:max-w-xl lg:max-w-28">
<Tooltip>
<TooltipTrigger>{user.username}</TooltipTrigger>
<TooltipContent>
<p>{user.username}</p>
</TooltipContent>
</Tooltip>
</p>
<p className="text-sm text-gray-500">{user.username}</p>
</div>
</div>
<AlertDialog>
Expand All @@ -293,7 +281,7 @@ export const PatientUsers = (props: PatientProps) => {
<AlertDialogCancel>{t("cancel")}</AlertDialogCancel>
<AlertDialogAction
onClick={() => removeUser(user.id)}
className="bg-red-500 text-white hover:bg-red-600"
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
{t("remove")}
</AlertDialogAction>
Expand Down

0 comments on commit c85e1af

Please sign in to comment.