Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
export interface StepProps {
className?: string;
description?: React.ReactNode;
icon?: React.ReactNode;
onClick?: React.MouseEventHandler;
status?: 'wait' | 'process' | 'finish' | 'error';
disabled?: boolean;
title?: React.ReactNode;
subTitle?: React.ReactNode;
style?: React.CSSProperties;
}
export default class Steps extends React.Component {
static Step = RcSteps.Step as React.ClassicComponentClass;
static defaultProps = {
current: 0,
};
static propTypes = {
prefixCls: PropTypes.string,
iconPrefix: PropTypes.string,
current: PropTypes.number,
};
renderSteps = ({ getPrefixCls }: ConfigConsumerProps) => {
const prefixCls = getPrefixCls('steps', this.props.prefixCls);
const iconPrefix = getPrefixCls('', this.props.iconPrefix);
const icons = {
finish: ,
return _possibleConstructorReturn(this, (Steps.__proto__ || Object.getPrototypeOf(Steps)).apply(this, arguments));
}
_createClass(Steps, [{
key: 'render',
value: function render() {
return React.createElement(RcSteps, this.props);
}
}]);
return Steps;
}(React.Component);
export default Steps;
Steps.Step = RcSteps.Step;
Steps.defaultProps = {
prefixCls: 'ant-steps',
iconPrefix: 'ant',
current: 0
};
Steps.propTypes = {
prefixCls: PropTypes.string,
iconPrefix: PropTypes.string,
current: PropTypes.number
};