Skip to content

Commit

Permalink
add link to camera preset configure from bed management
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Sep 29, 2024
1 parent f649039 commit e744ac4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Assets/AssetType/ONVIFCamera.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const ONVIFCamera = ({ assetId, facilityId, asset, onUpdated }: Props) => {
if (isLoading || loading || !facility) return <Loading />;

return (
<div className="flex w-full flex-col gap-4 p-4 pr-0 md:flex-row md:items-start">
<div className="flex w-full flex-col gap-4 px-0 py-4 md:flex-row md:items-start">
{["DistrictAdmin", "StateAdmin"].includes(authUser.user_type) && (
<form
className="w-full max-w-xs rounded-lg bg-white p-4 shadow"
Expand Down
12 changes: 12 additions & 0 deletions src/Components/Facility/BedManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,18 @@ const BedRow = (props: BedRowProps) => {
<p className="break-all">{description}</p>
</div>
<div className="mt-4 flex flex-col gap-2 lg:mt-0 lg:flex-row">
<ButtonV2
id="configure-linked-cameras"
href={`/facility/${facilityId}/location/${locationId}/beds/${id}/cameras`}
authorizeFor={NonReadOnlyUsers}
className="w-full lg:w-auto"
variant="secondary"
border
ghost
>
<CareIcon icon="l-video" className="text-lg" />
Manage linked cameras
</ButtonV2>
<ButtonV2
id="edit-bed-button"
href={`/facility/${facilityId}/location/${locationId}/beds/${id}/update`}
Expand Down

0 comments on commit e744ac4

Please sign in to comment.