signature sisplay change
This commit is contained in:
parent
d1e1952298
commit
e53df5c7ce
@ -413,8 +413,6 @@ export default function PatientForm({ type }: Props) {
|
|||||||
JSON.parse(localStorage.getItem('patientData'))
|
JSON.parse(localStorage.getItem('patientData'))
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
console.log("dsfdsfsa",signature)
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@ -638,6 +636,7 @@ export default function PatientForm({ type }: Props) {
|
|||||||
<FormGroup sx={{ marginTop: 3 }}>
|
<FormGroup sx={{ marginTop: 3 }}>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
required
|
required
|
||||||
|
disabled={type=='display'}
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={type === 'display' ? true : isChecked}
|
checked={type === 'display' ? true : isChecked}
|
||||||
@ -652,17 +651,28 @@ export default function PatientForm({ type }: Props) {
|
|||||||
<Grid item xs={12} >
|
<Grid item xs={12} >
|
||||||
|
|
||||||
<Grid container spacing={2} flexDirection={'row'}>
|
<Grid container spacing={2} flexDirection={'row'}>
|
||||||
|
{type!=='display'?
|
||||||
|
<>
|
||||||
<Grid item className='collapsable-form-style'>
|
<Grid item className='collapsable-form-style'>
|
||||||
<FormLabel>Signature:</FormLabel>
|
<FormLabel>Signature:</FormLabel>
|
||||||
<SignatureComponent signature={signature} setSignature={setSignature} />
|
<SignatureComponent signature={signature} setSignature={setSignature} />
|
||||||
</Grid>
|
</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'}}/>
|
||||||
|
</Box>
|
||||||
|
</Grid>
|
||||||
|
</>:
|
||||||
|
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<FormLabel sx={{margin:0,padding:0}}>Please verify your signature here:</FormLabel>
|
<FormLabel sx={{margin:0,padding:0}}>Your signature:</FormLabel>
|
||||||
<Box sx={{border:'1px solid black',borderRadius:2,height:'110px',width:'250px'}}>
|
<Box sx={{border:'1px solid black',borderRadius:2,height:'110px',width:'250px'}}>
|
||||||
<img src={signature} style={{height:'110px', width:'250px'}}/>
|
<img src={patientData.signature} style={{height:'110px', width:'250px'}}/>
|
||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
}
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user