فهرست منبع

extend from purecomponent

Peter Holmberg 7 سال پیش
والد
کامیت
c958ebd101
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      public/app/features/alerting/AlertRuleItem.tsx

+ 2 - 2
public/app/features/alerting/AlertRuleItem.tsx

@@ -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();
   };