Skip to content

Commit a0973f0

Browse files
committed
fix es6 react components
1 parent 76e4f24 commit a0973f0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

specs/button/Button.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import s from './Button.css';
66
* The only true button.
77
*/
88
export default class Button extends Component {
9-
constructor() {
9+
constructor(props) {
10+
super(props);
11+
1012
this.sizes = {
1113
small: '10px',
1214
normal: '14px',
@@ -21,7 +23,7 @@ export default class Button extends Component {
2123
render() {
2224
let styles = {
2325
color: this.props.color,
24-
fontSize: Button.sizes[this.props.size]
26+
fontSize: this.sizes[this.props.size]
2527
};
2628

2729
return (

specs/placeholder/Placeholder.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import s from './Placeholder.css';
66
* Image placeholders.
77
*/
88
export default class Placeholder extends Component {
9+
constructor(props) {
10+
super(props);
11+
}
12+
913
getImageUrl() {
1014
let { type, width, height } = this.props;
1115
let types = {

0 commit comments

Comments
 (0)