extend from purecomponent

This commit is contained in:
Peter Holmberg 2018-09-03 14:05:12 +02:00
parent 1994ca5016
commit c958ebd101

View File

@ -1,4 +1,4 @@
import React from 'react';
import React, { PureComponent } from 'react';
import Highlighter from 'react-highlight-words';
import classNames from 'classnames/bind';
import { AlertRule } from '../../types';
@ -8,7 +8,7 @@ export interface Props {
search: string;
}
export default class AlertRuleItem extends React.Component<Props, any> {
export default class AlertRuleItem extends PureComponent<Props, any> {
toggleState = () => {
// this.props.rule.togglePaused();
};