icon code commented
This commit is contained in:
parent
e53df5c7ce
commit
3991c7507e
@ -413,7 +413,6 @@ export default function PatientForm({ type }: Props) {
|
||||
JSON.parse(localStorage.getItem('patientData'))
|
||||
: [];
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{alertProps && alertProps.open && (
|
||||
@ -438,7 +437,7 @@ export default function PatientForm({ type }: Props) {
|
||||
onChange={handleExpandChange('panel1')}
|
||||
>
|
||||
<AccordionSummary
|
||||
expandIcon={<ExpandMoreIcon />}
|
||||
// expandIcon={<ExpandMoreIcon />}
|
||||
aria-controls='panel1a-content'
|
||||
id='panel1a-header'
|
||||
>
|
||||
@ -631,7 +630,6 @@ export default function PatientForm({ type }: Props) {
|
||||
</Accordion>
|
||||
|
||||
<Grid container>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-multiline'>
|
||||
<FormGroup sx={{ marginTop: 3 }}>
|
||||
<FormControlLabel
|
||||
@ -649,34 +647,58 @@ export default function PatientForm({ type }: Props) {
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12}>
|
||||
|
||||
<Grid container spacing={2} flexDirection={'row'}>
|
||||
{type!=='display'?
|
||||
{type !== 'display' ? (
|
||||
<>
|
||||
<Grid item className='collapsable-form-style'>
|
||||
<FormLabel>Signature:</FormLabel>
|
||||
<SignatureComponent signature={signature} setSignature={setSignature} />
|
||||
<SignatureComponent
|
||||
signature={signature}
|
||||
setSignature={setSignature}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item>
|
||||
<FormLabel sx={{margin:0,padding:0}}>Please verify your signature here:</FormLabel>
|
||||
<Box sx={{border:'1px solid black',borderRadius:2,height:'110px',width:'250px'}}>
|
||||
<img src={signature} style={{height:'110px', width:'250px'}}/>
|
||||
<FormLabel sx={{ margin: 0, padding: 0 }}>
|
||||
Please verify your signature here:
|
||||
</FormLabel>
|
||||
<Box
|
||||
sx={{
|
||||
border: '1px solid black',
|
||||
borderRadius: 2,
|
||||
height: '110px',
|
||||
width: '250px',
|
||||
}}
|
||||
>
|
||||
<img
|
||||
src={signature}
|
||||
style={{ height: '110px', width: '250px' }}
|
||||
/>
|
||||
</Box>
|
||||
</Grid>
|
||||
</>:
|
||||
|
||||
</>
|
||||
) : (
|
||||
<Grid item>
|
||||
<FormLabel sx={{margin:0,padding:0}}>Your signature:</FormLabel>
|
||||
<Box sx={{border:'1px solid black',borderRadius:2,height:'110px',width:'250px'}}>
|
||||
<img src={patientData.signature} style={{height:'110px', width:'250px'}}/>
|
||||
<FormLabel sx={{ margin: 0, padding: 0 }}>
|
||||
Your signature:
|
||||
</FormLabel>
|
||||
<Box
|
||||
sx={{
|
||||
border: '1px solid black',
|
||||
borderRadius: 2,
|
||||
height: '110px',
|
||||
width: '250px',
|
||||
}}
|
||||
>
|
||||
<img
|
||||
src={patientData.signature}
|
||||
style={{ height: '110px', width: '250px' }}
|
||||
/>
|
||||
</Box>
|
||||
</Grid>
|
||||
}
|
||||
|
||||
)}
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
<Grid container flexDirection={'row-reverse'}>
|
||||
<Grid item>
|
||||
@ -686,7 +708,9 @@ export default function PatientForm({ type }: Props) {
|
||||
color='primary'
|
||||
sx={{ margin: 5, width: '200px' }}
|
||||
disabled={
|
||||
isChecked == false || signature == undefined || type == 'display'
|
||||
isChecked == false ||
|
||||
signature == undefined ||
|
||||
type == 'display'
|
||||
}
|
||||
onClick={handleSubmit}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user