1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-30 14:00:07 +02:00

Make IconButton a pure component

This commit is contained in:
Chen-I Lim 2020-11-16 12:29:10 -08:00
parent 9c70ff2ca2
commit d2d02585b2

View File

@ -10,8 +10,8 @@ type Props = {
icon?: React.ReactNode
}
export default class Button extends React.Component<Props> {
render() {
export default class Button extends React.PureComponent<Props> {
render(): JSX.Element {
return (
<div
onClick={this.props.onClick}