diff --git a/packages/esm-patient-banner-app/src/banner/patient-banner.component.tsx b/packages/esm-patient-banner-app/src/banner/patient-banner.component.tsx index 20105175d1..39ffda3b71 100644 --- a/packages/esm-patient-banner-app/src/banner/patient-banner.component.tsx +++ b/packages/esm-patient-banner-app/src/banner/patient-banner.component.tsx @@ -15,9 +15,16 @@ interface PatientBannerProps { patientUuid: string; onClick?: (patientUuid: string) => void; onTransition?: () => void; + hideActionsOverflow?: boolean; } -const PatientBanner: React.FC = ({ patient, patientUuid, onClick, onTransition }) => { +const PatientBanner: React.FC = ({ + patient, + patientUuid, + onClick, + onTransition, + hideActionsOverflow, +}) => { const { t } = useTranslation(); const overFlowMenuRef = React.useRef(null); @@ -66,23 +73,25 @@ const PatientBanner: React.FC = ({ patient, patientUuid, onC className={styles.flexRow} /> -
- - {t('actions', 'Actions')}{' '} - - - } - > - - -
+ {!hideActionsOverflow && ( +
+ + {t('actions', 'Actions')}{' '} + + + } + > + + +
+ )}
{capitalize(patient.gender)} · {age(patient.birthDate)} ·{' '}