fix: move confirm & discard buttons w. text steps logic
This commit is contained in:
@@ -128,15 +128,15 @@ const stopCaptureAndEmitGetTextSettings = useCallback(() => {
|
|||||||
margin="normal"
|
margin="normal"
|
||||||
InputProps={{ readOnly: confirmedTextSteps[step.id] }}
|
InputProps={{ readOnly: confirmedTextSteps[step.id] }}
|
||||||
/>
|
/>
|
||||||
</>
|
|
||||||
) : null
|
|
||||||
}
|
|
||||||
{!confirmedTextSteps[step.id] && (
|
{!confirmedTextSteps[step.id] && (
|
||||||
<Box display="flex" justifyContent="space-between" gap={2}>
|
<Box display="flex" justifyContent="space-between" gap={2}>
|
||||||
<Button variant="contained" onClick={() => handleTextStepConfirm(step.id)} disabled={!textLabels[step.id]?.trim()}>Confirm</Button>
|
<Button variant="contained" onClick={() => handleTextStepConfirm(step.id)} disabled={!textLabels[step.id]?.trim()}>Confirm</Button>
|
||||||
<Button variant="contained" onClick={() => handleTextStepDiscard(step.id)}>Discard</Button>
|
<Button variant="contained" onClick={() => handleTextStepDiscard(step.id)}>Discard</Button>
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
|
</>
|
||||||
|
) : null
|
||||||
|
}
|
||||||
</Box>
|
</Box>
|
||||||
))}
|
))}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user