Skip to content

Commit

Permalink
Merge pull request #1 from AsjidAle/AsjidAle-patch-1
Browse files Browse the repository at this point in the history
Fixing issue jcmcneal#128: Default Props Error
  • Loading branch information
AsjidAle authored Dec 17, 2024
2 parents eeec405 + 6074240 commit b407bf9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ StepWizard.defaultProps = {
};

export const Step = ({
children,
isActive,
transitions,
children = [],
isActive = false,
transitions = '',
}) => (
<div className={`${styles.step} ${transitions} ${isActive ? styles.active : ''}`.trim()}>
{ children }
Expand All @@ -268,9 +268,3 @@ if (process.env.NODE_ENV !== 'production') {
transitions: PropTypes.string,
};
}

Step.defaultProps = {
children: [],
isActive: false,
transitions: '',
};

0 comments on commit b407bf9

Please sign in to comment.