Skip to content

Commit 1a12331

Browse files
committed
fix(pf4): remove isRequired from submit flag
1 parent 40a8001 commit 1a12331

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/pf4-component-mapper/src/wizard/wizard-components/step-buttons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ NextButton.propTypes = {
2727
handleNext: PropTypes.func.isRequired,
2828
nextLabel: PropTypes.node.isRequired,
2929
getState: PropTypes.func.isRequired,
30-
conditionalSubmitFlag: PropTypes.string.isRequired,
30+
conditionalSubmitFlag: PropTypes.string,
3131
};
3232

3333
const WizardStepButtons = ({
@@ -84,7 +84,7 @@ const WizardStepButtons = ({
8484

8585
WizardStepButtons.propTypes = {
8686
disableBack: PropTypes.bool,
87-
conditionalSubmitFlag: PropTypes.string.isRequired,
87+
conditionalSubmitFlag: PropTypes.string,
8888
handlePrev: PropTypes.func.isRequired,
8989
handleNext: PropTypes.func.isRequired,
9090
nextStep: PropTypes.oneOfType([

packages/pf4-component-mapper/src/wizard/wizard-components/wizard-step.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ WizardStep.propTypes = {
9595
name: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
9696
hasNoBodyPadding: PropTypes.bool,
9797
StepTemplate: PropTypes.elementType,
98-
conditionalSubmitFlag: PropTypes.string.isRequired,
98+
conditionalSubmitFlag: PropTypes.string,
9999
};
100100

101101
WizardStep.defaultProps = {

packages/pf4-component-mapper/src/wizard/wizard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ WizardInternal.propTypes = {
178178
container: PropTypes.instanceOf(Element),
179179
StepTemplate: PropTypes.elementType,
180180
className: PropTypes.string,
181-
conditionalSubmitFlag: PropTypes.string.isRequired,
181+
conditionalSubmitFlag: PropTypes.string,
182182
};
183183

184184
const defaultLabels = {

0 commit comments

Comments
 (0)