Skip to content

Commit

Permalink
fix user online icon
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Feb 20, 2024
1 parent e2c4ec9 commit 8fdb3b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
8 changes: 0 additions & 8 deletions src/Components/Facility/FacilityUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,6 @@ export default function FacilityUsers(props: any) {
className="mt-2 flex gap-3 text-2xl font-bold capitalize"
>
{`${user.first_name} ${user.last_name}`}

{user.last_login && isUserOnline(user) ? (
<CareIcon
icon="l-circle"
className="ml-1 animate-pulse text-primary-500 opacity-75"
aria-label="Online"
/>
) : null}
{showUserDelete(authUser, user) && (
<div
className="w-8 cursor-pointer rounded-lg bg-red-50 text-xl text-red-600 hover:bg-red-50 hover:text-red-700"
Expand Down
7 changes: 3 additions & 4 deletions src/Components/Users/ManageUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,13 @@ export default function ManageUsers() {
</div>
<div
id="name"
className="mt-2 flex gap-3 text-2xl font-bold capitalize"
className="mt-2 flex items-center gap-3 text-2xl font-bold capitalize"
>
{`${user.first_name} ${user.last_name}`}

{user.last_login && cur_online ? (
<CareIcon
icon="l-circle"
className="ml-1 animate-pulse text-3xl text-primary-500 opacity-75"
<div
className="h-4 w-4 rounded-full bg-primary-500"
aria-label="Online"
/>
) : null}
Expand Down

0 comments on commit 8fdb3b5

Please sign in to comment.