Display or Fill image marker accorsing to type

This commit is contained in:
vipeeshpavithran 2023-09-06 10:29:41 +05:30
parent 617728b771
commit 28ba717201

View File

@ -20,6 +20,7 @@ import SystemReviewSection6 from './SyestemReviewSection6';
import RecreationalHobbiesSection7 from './RecreationalHobbiesSection7'; import RecreationalHobbiesSection7 from './RecreationalHobbiesSection7';
import OtherDetails8 from './OtherDetails8'; import OtherDetails8 from './OtherDetails8';
import PatientImageMarker from '../ImageMarker/PatientImageMarker'; import PatientImageMarker from '../ImageMarker/PatientImageMarker';
import ViewPatientImageMarker from '../ImageMarker/ViewPatientImageMarker';
const Accordion = styled((props: AccordionProps) => ( const Accordion = styled((props: AccordionProps) => (
<MuiAccordion disableGutters elevation={0} square {...props} /> <MuiAccordion disableGutters elevation={0} square {...props} />
@ -431,8 +432,14 @@ export default function PatientForm({type}:Props){
<Typography sx={{fontSize:18}}>Patient's Injury Image</Typography> <Typography sx={{fontSize:18}}>Patient's Injury Image</Typography>
</AccordionSummary> </AccordionSummary>
<AccordionDetails> <AccordionDetails>
<PatientImageMarker /> {
type === 'fill' ?
<PatientImageMarker />
:
<ViewPatientImageMarker />
}
</AccordionDetails> </AccordionDetails>
</Accordion> </Accordion>