Skip to content

Commit

Permalink
[upd] Change conf for TestApp; fix wrong propname
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklim committed Aug 30, 2020
1 parent 067f9e4 commit 0afcda9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/components/wizard/Wizard.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Card } from 'react-bootstrap';
import WizardStep from './WizardStep';
import HorizontalWizardNav from './HorizontalWizardNav';
Expand Down Expand Up @@ -85,8 +84,8 @@ const Wizard = () => {
<WizardStep
key={'step' + currentStep}
step={step}
onNext={onNextStep}
onPrevious={onPreviousStep}
onNextStep={onNextStep}
onPreviousStep={onPreviousStep}
stepIndex={currentStep}
isFirstStep={currentStep === 0}
isLastStep={currentStep === wizardContext.getStepData().length - 1}
Expand Down
5 changes: 3 additions & 2 deletions test/rendering/TestApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class TestApp extends React.Component {
modalView: false,
modalProps,
horizontalWizardNav: true,
wizardStepButtons: true
wizardStepButtons: true,
enableForwardSkip: true,
startingStep: 1
};

return (
Expand All @@ -50,7 +52,6 @@ class TestApp extends React.Component {
options={options}
fetchTypeAheadValues={this.fetchTypeAheadValues}
isFormValid={(isFormValid) => this.setState({ isFormValid })}
enableForwardSkip={true}
/>
<button
disabled={!this.state.isFormValid}
Expand Down

0 comments on commit 0afcda9

Please sign in to comment.