From 6d6f6a7d938f21dbe3a97951a038e79adb2876d3 Mon Sep 17 00:00:00 2001 From: Asjid Ali Date: Sun, 1 Dec 2024 22:01:09 +0500 Subject: [PATCH] Fixing issue#128 default Props error --- src/index.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/index.js b/src/index.js index 022bca6..2c57ff2 100644 --- a/src/index.js +++ b/src/index.js @@ -239,17 +239,17 @@ StepWizard.propTypes = { transitions: PropTypes.object, }; -StepWizard.defaultProps = { - children: [], - className: null, - initialStep: 1, - instance: () => {}, - isHashEnabled: false, - isLazyMount: false, - nav: null, - onStepChange: () => {}, - transitions: undefined, -}; +// StepWizard.defaultProps = { +// children: [], +// className: null, +// initialStep: 1, +// instance: () => {}, +// isHashEnabled: false, +// isLazyMount: false, +// nav: null, +// onStepChange: () => {}, +// transitions: undefined, +// }; export const Step = ({ children, @@ -269,8 +269,8 @@ if (process.env.NODE_ENV !== 'production') { }; } -Step.defaultProps = { - children: [], - isActive: false, - transitions: '', -}; +// Step.defaultProps = { +// children: [], +// isActive: false, +// transitions: '', +// };