mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
pure components
This commit is contained in:
parent
e23cdfeb8d
commit
652c4b39f4
@ -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 {
|
||||
|
@ -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();
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user