1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

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

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