Skip to content

Commit

Permalink
Refactor BedTypeCard component to remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Jan 2, 2024
1 parent 19d0aa9 commit f7e878a
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions src/Components/Facility/BedTypeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,9 @@ export const BedTypeCard: React.FC<BedTypeCardProps> = ({
<div className="text-md font-medium not-italic leading-[normal] text-[#453C52]">
{label}
</div>
{facilityId && (
<ButtonV2
variant="secondary"
ghost
onClick={() => {
setIsRefreshing(true);
handleUpdate();
}}
className="bg-opacity/10 flex aspect-square w-4 items-center justify-center rounded bg-primary-100 px-4 py-0 hover:bg-primary-200"
>
<CareIcon
icon="l-sync"
className={`h-5 w-5 text-primary-700 ${
isRefreshing ? "animate-reverse-spin" : ""
}`}
/>
</ButtonV2>
)}
<span className="flex items-center justify-center rounded py-0 text-sm text-gray-500">
{usedPercent}%
</span>
</header>
<div className="mt-4 text-xl font-extrabold text-black">
{used} / {total}
Expand Down

0 comments on commit f7e878a

Please sign in to comment.