1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

pure components

This commit is contained in:
Ivar 2016-11-26 10:01:48 +01:00
parent e23cdfeb8d
commit 652c4b39f4
3 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import Feature from './feature-component';
import { Link } from 'react-router';
import { List, ListItem, ListSubHeader, ListDivider } from 'react-toolbox/lib/list';
export default class FeatureListComponent extends React.Component {
export default class FeatureListComponent extends React.PureComponent {
static propTypes () {
return {

View File

@ -1,7 +1,7 @@
import React, { Component } from 'react';
import React, { PureComponent } from 'react';
import HistoryList from './history-list-container';
class History extends Component {
class History extends PureComponent {
componentDidMount () {
this.props.fetchHistory();

View File

@ -1,4 +1,4 @@
import React, { PropTypes, Component } from 'react';
import React, { PropTypes, PureComponent } from 'react';
import FontIcon from 'react-toolbox/lib/font_icon';
@ -70,7 +70,7 @@ function buildDiff (diff, idx) {
return (<div key={idx}>{change}</div>);
}
class HistoryItem extends Component {
class HistoryItem extends PureComponent {
static propTypes () {
return {