mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +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 { Link } from 'react-router';
|
||||||
import { List, ListItem, ListSubHeader, ListDivider } from 'react-toolbox/lib/list';
|
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 () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
import HistoryList from './history-list-container';
|
import HistoryList from './history-list-container';
|
||||||
|
|
||||||
class History extends Component {
|
class History extends PureComponent {
|
||||||
|
|
||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
this.props.fetchHistory();
|
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';
|
import FontIcon from 'react-toolbox/lib/font_icon';
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ function buildDiff (diff, idx) {
|
|||||||
return (<div key={idx}>{change}</div>);
|
return (<div key={idx}>{change}</div>);
|
||||||
}
|
}
|
||||||
|
|
||||||
class HistoryItem extends Component {
|
class HistoryItem extends PureComponent {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user