Skip to content

Commit

Permalink
(feat) O3-3848 Enable Admission request bar to always be displayed. (#…
Browse files Browse the repository at this point in the history
…1364)

* Enable Admission request bar to always be displayed

* Clean up
  • Loading branch information
suubi-joshua authored Nov 8, 2024
1 parent 6a81c79 commit 95a19ea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const AdmissionRequestsBar: React.FC<AdmissionRequestsBarProps> = ({ wardPending
const { t } = useTranslation();
const layout = useLayoutType();

if (isLoading || !inpatientRequests?.length) {
if (isLoading || !inpatientRequests) {
return null;
}

Expand All @@ -31,7 +31,9 @@ const AdmissionRequestsBar: React.FC<AdmissionRequestsBarProps> = ({ wardPending
}

return (
<div className={styles.admissionRequestsContainer}>
<div className={`${styles.admissionRequestsContainer} ${
inpatientRequests?.length ? styles.blackBackground : styles.lightBlueBackground
}`}>
<Movement className={styles.movementIcon} size="24" />
<span className={styles.content}>
{t('admissionRequestsCount', '{{count}} admission request', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,18 @@
margin-right: layout.$spacing-03;
}

.blackBackground {
background-color: black;
color: white;
}

.lightBlueBackground {
background-color: white;
border-left:4px solid $color-blue-60-2;
color: black;
}

.content {
@include type.type-style('heading-compact-01');
color: $ui-02;
margin-right: layout.$spacing-03;
}

0 comments on commit 95a19ea

Please sign in to comment.