Skip to content

Commit

Permalink
make how long ago a requested was made into a status badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda2900 committed Sep 25, 2023
1 parent 970b348 commit 29fd283
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/AdminAppointmentDetailsPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ const AdminAppointmentDetailsPopup = ({
}
if (!isAppointmentScheduled && !isAppointmentCancelled) {
statusList.push('Waiting');
statusList.push(updateRequestCreatedTime(created_at!));
}

return statusList.map((status, index) => (
Expand All @@ -270,12 +271,7 @@ const AdminAppointmentDetailsPopup = ({
<br />A Peek into the Appointment
</DialogTitle>
</DialogHeader>
<div className="mt-4 px-2 flex gap-4">
{renderStatusBadges()}
{!isAppointmentScheduled
? `${updateRequestCreatedTime(created_at!)}`
: ``}
</div>
<div className="mt-4 px-2 flex gap-4">{renderStatusBadges()}</div>
<div className="grid gap-2 py-2 px-2">
<div className="flex gap-4">
<h3 className="font-bold">Name :</h3>
Expand Down

0 comments on commit 29fd283

Please sign in to comment.