Fixed linter errors.

This commit is contained in:
Akshay Joshi 2021-12-22 14:44:57 +05:30
parent ae73f13812
commit ebee7a5b72
2 changed files with 12 additions and 10 deletions

View File

@ -217,5 +217,7 @@ Wizard.propTypes = {
stepPanelCss: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), stepPanelCss: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
rootClass: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), rootClass: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]), children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
disableDialogHelp: PropTypes.bool disableDialogHelp: PropTypes.bool,
beforeNext: PropTypes.func,
beforeBack: PropTypes.func,
}; };

View File

@ -11,15 +11,15 @@ import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
export default function WizardStep({ ...props }) { export default function WizardStep({ ...props }) {
return ( return (
<> { <> {
React.Children.map(props.children, (child) => { React.Children.map(props.children, (child) => {
return ( return (
<> <>
{child} {child}
</> </>
); );
}) })
} }
</> </>
); );
} }