Pass required props to TintableSvg.

This commit is contained in:
Richard Lewis 2017-11-15 15:17:21 +00:00
parent 24b9269ff5
commit 750e64deee
2 changed files with 8 additions and 2 deletions

View file

@ -390,6 +390,8 @@ export default React.createClass({
className="mx_AppTileMenuBarWidget mx_AppTileMenuBarWidgetPadding" className="mx_AppTileMenuBarWidget mx_AppTileMenuBarWidgetPadding"
title={_t('Edit')} title={_t('Edit')}
onClick={this._onEditClick} onClick={this._onEditClick}
width="10"
height="10"
/> } /> }
{ /* Delete widget */ } { /* Delete widget */ }
@ -398,6 +400,8 @@ export default React.createClass({
className={deleteClasses} className={deleteClasses}
title={_t(deleteWidgetLabel)} title={_t(deleteWidgetLabel)}
onClick={this._onDeleteClick} onClick={this._onDeleteClick}
width="10"
height="10"
/> />
</span> </span>
</div> </div>

View file

@ -36,6 +36,8 @@ export default class TintableSvgButton extends React.Component {
className={classes}> className={classes}>
<TintableSvg <TintableSvg
src={this.props.src} src={this.props.src}
width={this.props.width}
height={this.props.height}
></TintableSvg> ></TintableSvg>
<span <span
title={this.props.title} title={this.props.title}
@ -49,8 +51,8 @@ TintableSvgButton.propTypes = {
src: PropTypes.string, src: PropTypes.string,
title: PropTypes.string, title: PropTypes.string,
className: PropTypes.string, className: PropTypes.string,
width: PropTypes.string, width: PropTypes.string.isRequired,
height: PropTypes.string, height: PropTypes.string.isRequired,
onClick: PropTypes.func, onClick: PropTypes.func,
}; };