Skip to content

Commit

Permalink
(fix) Apply geopattern styles to patient avatar conditionally (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen authored Jun 5, 2024
1 parent fb2bcf8 commit 3ae1da6
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ export function PatientPhoto({ patientUuid, patientName, size }: PatientPhotoPro
src={photo?.imageSrc}
size={size === 'small' ? '48' : '80'}
textSizeRatio={size === 'small' ? 1 : 2}
style={{
backgroundImage: `url(${patternUrl})`,
backgroundRepeat: 'round',
}}
style={
!photo
? {
backgroundImage: `url(${patternUrl})`,
backgroundRepeat: 'round',
}
: undefined
}
/>
);
}

0 comments on commit 3ae1da6

Please sign in to comment.