Skip to content

Commit

Permalink
Merge branch 'coronasafe:develop' into Fix-ohcnetwork#6891
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 authored Jan 12, 2024
2 parents ec730a7 + 51b02c2 commit 0a22422
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
14 changes: 8 additions & 6 deletions src/Components/Facility/FacilityUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,10 @@ export default function FacilityUsers(props: any) {
</span>
</div>
</div>
<div className="mt-2 text-2xl font-bold capitalize">
<div
id="name"
className="mt-2 flex gap-3 text-2xl font-bold capitalize"
>
{`${user.first_name} ${user.last_name}`}

{user.last_login && isUserOnline(user) ? (
Expand All @@ -306,13 +309,12 @@ export default function FacilityUsers(props: any) {
></i>
) : null}
{showUserDelete(authUser, user) && (
<button
type="button"
className="focus:ring-blue m-3 w-20 self-end rounded-md border border-red-500 bg-white px-3 py-2 text-center text-sm font-medium leading-4 text-red-700 transition duration-150 ease-in-out hover:text-red-500 hover:shadow focus:border-red-300 focus:outline-none active:bg-gray-50 active:text-red-800"
<div
className="w-8 cursor-pointer rounded-lg bg-red-50 text-xl text-red-600 hover:bg-red-50 hover:text-red-700"
onClick={() => handleDelete(user)}
>
Delete
</button>
<CareIcon icon="l-trash" className="ml-[5px]" />
</div>
)}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const TestRow = ({ data, i, onChange, showForm, value, isChanged }: any) => {
<td className="whitespace-nowrap px-6 py-4 text-sm font-medium text-gray-900">
{data?.investigation_object?.name || "---"}
</td>
<td className="whitespace-nowrap px-6 py-4 text-right text-sm text-gray-700">
<td className="whitespace-nowrap px-6 py-4 text-sm text-gray-700">
{showForm ? (
data?.investigation_object?.investigation_type === "Choice" ? (
<SelectFormField
Expand Down
16 changes: 8 additions & 8 deletions src/Components/Users/ManageUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ export default function ManageUsers() {
)}
</div>
</div>
<div id="name" className="mt-2 text-2xl font-bold capitalize">
<div
id="name"
className="mt-2 flex gap-3 text-2xl font-bold capitalize"
>
{`${user.first_name} ${user.last_name}`}

{user.last_login && cur_online ? (
Expand All @@ -231,15 +234,12 @@ export default function ManageUsers() {
></i>
) : null}
{showUserDelete(authUser, user) && (
<ButtonV2
variant="danger"
ghost
border
className="float-right"
<div
className="w-8 cursor-pointer rounded-lg bg-red-50 text-xl text-red-600 hover:bg-red-50 hover:text-red-700"
onClick={() => handleDelete(user)}
>
Delete
</ButtonV2>
<CareIcon icon="l-trash" className="ml-[5px]" />
</div>
)}
</div>

Expand Down

0 comments on commit 0a22422

Please sign in to comment.