Skip to content

Commit

Permalink
fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Nov 2, 2023
1 parent bce67f7 commit 50cb5e0
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/Components/Medicine/PrescrpitionTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function PrescrpitionTimeline({
return (
<Timeline
className={classNames(
"md:px-3",
"py-4 md:px-3",
loading && data && "animate-pulse opacity-70"
)}
name="prescription"
Expand Down Expand Up @@ -107,28 +107,6 @@ const MedicineAdministeredNode = ({

return (
<>
<ConfirmDialog
show={showArchiveConfirmation}
disabled={isArchiving}
variant="warning"
title="Archive Administration"
description="Are you sure you want to archive this administration?"
action="Archive"
onConfirm={async () => {
setIsArchiving(true);

const { res } = await request(MedicineRoutes.archiveAdministration, {
pathParams: { consultation, external_id: event.administration.id },
});

if (res?.status === 200) {
setIsArchiving(false);
setShowArchiveConfirmation(false);
onArchived();
}
}}
onClose={() => setShowArchiveConfirmation(false)}
/>
<TimelineNode
name="medicine"
event={event}
Expand Down Expand Up @@ -163,6 +141,28 @@ const MedicineAdministeredNode = ({
</TimelineNodeNotes>
)}
</TimelineNode>
<ConfirmDialog
show={showArchiveConfirmation}
disabled={isArchiving}
variant="warning"
title="Archive Administration"
description="Are you sure you want to archive this administration?"
action="Archive"
onConfirm={async () => {
setIsArchiving(true);

const { res } = await request(MedicineRoutes.archiveAdministration, {
pathParams: { consultation, external_id: event.administration.id },
});

if (res?.status === 200) {
setIsArchiving(false);
setShowArchiveConfirmation(false);
onArchived();
}
}}
onClose={() => setShowArchiveConfirmation(false)}
/>
</>
);
};
Expand Down

0 comments on commit 50cb5e0

Please sign in to comment.