Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

some props, converted to containerStyle and containerClassName #32

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/react-progressbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
key: 'render',
value: function render() {
var _props = this.props,
style = _props.style,
className = _props.className;
containerStyle = _props.containerStyle,
containerClassName = _props.containerClassName;


return _react2.default.createElement('div', { className: className, style: style, ref: 'progressBar' });
return _react2.default.createElement('div', { className: containerClassName, style: containerStyle, ref: 'progressBar' });
}
}, {
key: 'componentWillReceiveProps',
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Shape extends Component {
}

render() {
const {style, className} = this.props;
const {containerStyle, containerClassName} = this.props;

return <div className={className} style={style} ref="progressBar"></div>;
return <div className={containerClassName} style={containerStyle} ref="progressBar"></div>;
}

componentWillReceiveProps(nextProps) {
Expand Down