From 3555d56a750084ddb12c040402da24a5a3a29292 Mon Sep 17 00:00:00 2001 From: Devdeep Ghosh Date: Mon, 11 Mar 2024 19:04:19 +0530 Subject: [PATCH] reverted back to old layout --- .../Facility/DoctorVideoSlideover.tsx | 199 +++++++++--------- 1 file changed, 101 insertions(+), 98 deletions(-) diff --git a/src/Components/Facility/DoctorVideoSlideover.tsx b/src/Components/Facility/DoctorVideoSlideover.tsx index b673d6dd3b8..9252a9a368f 100644 --- a/src/Components/Facility/DoctorVideoSlideover.tsx +++ b/src/Components/Facility/DoctorVideoSlideover.tsx @@ -6,7 +6,6 @@ import CareIcon, { IconName } from "../../CAREUI/icons/CareIcon"; import { relativeTime } from "../../Utils/utils"; import useAuthUser from "../../Common/hooks/useAuthUser"; import { triggerGoal } from "../../Integrations/Plausible"; -import Chip from "../../CAREUI/display/Chip"; import Switch from "../../CAREUI/interactive/Switch"; import useQuery from "../../Utils/request/useQuery"; import routes from "../../Redux/api"; @@ -72,7 +71,7 @@ export default function DoctorVideoSlideover(props: { open={show} setOpen={setShow} title="Doctor Connect" - dialogClass="md:w-[400px]" + dialogClass="md:w-[450px]" > {/* Title and close button */}

@@ -117,7 +116,6 @@ function UserListItem(props: { user: UserAssignedModel; facilityId: string }) { const facilityId = props.facilityId; const icon: IconName = user.user_type === "Doctor" ? "l-user-md" : "l-user-nurse"; - const authUser = useAuthUser(); return (

  • -
    -

    +

    +
    {user.first_name} {user.last_name} - - + ( + {isHomeUser(user, facilityId) ? user.user_type - : `TeleICU Hub ${user.user_type}` - } - size="small" - /> -

    + : `TeleICU Hub ${user.user_type}`} + ) + + + +
    {!!user.skills.length && (
    @@ -185,99 +183,104 @@ function UserListItem(props: { user: UserAssignedModel; facilityId: string }) {
    )} -

    - - await navigator.clipboard.writeText( - user?.alt_phone_number || "" - ) - } - > - - - Copy Phone number - - - - - {user.alt_phone_number} -

    -
    -
    - {user.video_connect_link && ( - { - triggerGoal("Doctor Connect Click", { - medium: "Video Call", - userId: authUser.id, - targetUserType: user.user_type, - }); - }} - target="_blank" - rel="noopener noreferrer" - > -
    - - Connect on a Video Call - - -
    -
    - )} +
  • ); } + +function DoctorConnectButtons(props: { user: UserAssignedModel }) { + const user = props.user; + const authUser = useAuthUser(); + return ( +
    + {user.video_connect_link && ( + { + triggerGoal("Doctor Connect Click", { + medium: "Video Call", + userId: authUser.id, + targetUserType: user.user_type, + }); + }} + target="_blank" + rel="noopener noreferrer" + > +
    + + Connect on a Video Call + + +
    +
    + )} + { + triggerGoal("Doctor Connect Click", { + medium: "WhatsApp", + userId: authUser.id, + targetUserType: user.user_type, + }); + }} + target="_blank" + rel="noopener noreferrer" + > +
    + + Connect on WhatsApp + + +
    +
    + { + triggerGoal("Doctor Connect Click", { + medium: "Phone Call", + userId: authUser.id, + targetUserType: user.user_type, + }); + }} + > +
    + Connect on Phone + +
    +
    +
    + ); +}