File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import s from './Button.css';
6
6
* The only true button.
7
7
*/
8
8
export default class Button extends Component {
9
- constructor ( ) {
9
+ constructor ( props ) {
10
+ super ( props ) ;
11
+
10
12
this . sizes = {
11
13
small : '10px' ,
12
14
normal : '14px' ,
@@ -21,7 +23,7 @@ export default class Button extends Component {
21
23
render ( ) {
22
24
let styles = {
23
25
color : this . props . color ,
24
- fontSize : Button . sizes [ this . props . size ]
26
+ fontSize : this . sizes [ this . props . size ]
25
27
} ;
26
28
27
29
return (
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ import s from './Placeholder.css';
6
6
* Image placeholders.
7
7
*/
8
8
export default class Placeholder extends Component {
9
+ constructor ( props ) {
10
+ super ( props ) ;
11
+ }
12
+
9
13
getImageUrl ( ) {
10
14
let { type, width, height } = this . props ;
11
15
let types = {
You can’t perform that action at this time.
0 commit comments