Skip to content

Commit

Permalink
shadcn Card and responsiveness added
Browse files Browse the repository at this point in the history
  • Loading branch information
modamaan committed Dec 16, 2024
1 parent 96bc802 commit 0fcd48e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Assets/AssetType/HL7Monitor.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { SyntheticEvent, useEffect, useState } from "react";

import Card from "@/CAREUI/display/Card";
import CareIcon from "@/CAREUI/icons/CareIcon";

import { Card } from "@/components/ui/card";

import {
AssetClass,
AssetData,
Expand Down Expand Up @@ -91,7 +92,7 @@ const HL7Monitor = (props: HL7MonitorProps) => {
<div className="mx-auto flex flex-col gap-4 xl:flex-row-reverse">
{["DistrictAdmin", "StateAdmin"].includes(authUser.user_type) && (
<div className="flex w-full shrink-0 flex-col gap-4 xl:max-w-xs">
<Card className="flex w-full flex-col">
<Card className="flex flex-wrap flex-col p-4 m-4 md:m-0 w-1/2 sm:w-2/3 md:w-full">
<form onSubmit={handleSubmit}>
<h2 className="mb-2 text-lg font-bold">Connection</h2>
<div className="flex flex-col gap-2">
Expand Down Expand Up @@ -135,7 +136,7 @@ const HL7Monitor = (props: HL7MonitorProps) => {
</form>
</Card>
{["HL7MONITOR"].includes(assetType) && (
<Card>
<Card className="p-4 m-4 md:m-0 w-1/2 sm:w-2/3 md:w-full">
<MonitorConfigure asset={asset as AssetData} />
</Card>
)}
Expand All @@ -150,6 +151,7 @@ const HL7Monitor = (props: HL7MonitorProps) => {
hideFooter={true}
/>
)}

{assetType === "VENTILATOR" && (
<VentilatorPatientVitalsMonitor
key={socketUrl}
Expand Down

0 comments on commit 0fcd48e

Please sign in to comment.