Skip to content

Commit

Permalink
Fix issue 'props.nextStep' and 'props.prevStep'
Browse files Browse the repository at this point in the history
  • Loading branch information
karreiro committed Jun 26, 2020
1 parent acc3306 commit 18bcc17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export const StepDialog = (
onCloseAction: () => void
) => {
const { currentStep, setCurrentStep } = useContext(CurrentTutorialContext);
const nextStep = useCallback(() => setCurrentStep(currentStep + 1), []);
const prevStep = useCallback(() => setCurrentStep(currentStep - 1), []);
const nextStep = useCallback(() => setCurrentStep(currentStep + 1), [currentStep]);
const prevStep = useCallback(() => setCurrentStep(currentStep - 1), [currentStep]);
return () => (
<>
<ModalBoxCloseButton data-kgt-close="true" onClose={onCloseAction} />
Expand Down

0 comments on commit 18bcc17

Please sign in to comment.