Merge pull request #2323 from automatisch/fix-editable-typography-errors
fix: remove not used props passed to EditableTypography and fix propTypes
This commit is contained in:
@@ -95,7 +95,7 @@ function EditableTypography(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EditableTypography.propTypes = {
|
EditableTypography.propTypes = {
|
||||||
children: PropTypes.string.isRequired,
|
children: PropTypes.string,
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
iconColor: PropTypes.oneOf(['action', 'inherit']),
|
iconColor: PropTypes.oneOf(['action', 'inherit']),
|
||||||
onConfirm: PropTypes.func,
|
onConfirm: PropTypes.func,
|
||||||
|
|||||||
@@ -265,8 +265,6 @@ function FlowStep(props) {
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<EditableTypography
|
<EditableTypography
|
||||||
iconPosition="end"
|
|
||||||
iconSize="small"
|
|
||||||
variant="body2"
|
variant="body2"
|
||||||
onConfirm={handleStepNameChange}
|
onConfirm={handleStepNameChange}
|
||||||
prefixValue={`${step.position}. `}
|
prefixValue={`${step.position}. `}
|
||||||
|
|||||||
Reference in New Issue
Block a user