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';
66 * The only true button.
77 */
88export 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 (
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ import s from './Placeholder.css';
66 * Image placeholders.
77 */
88export 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 = {
You can’t perform that action at this time.
0 commit comments