Commit 960c43d2 authored by mgabdev's avatar mgabdev

Updated PureComponent usage

parent cb55ef9f
......@@ -28,7 +28,7 @@ const links = [
export default
@injectIntl
@withRouter
class FooterBar extends React.PureComponent {
class FooterBar extends PureComponent {
static propTypes = {
intl: PropTypes.object.isRequired,
......
import { monthlyExpensesComplete } from '../../initial_state';
export default class ProgressPanel extends React.PureComponent {
export default class ProgressPanel extends PureComponent {
render() {
if (!monthlyExpensesComplete) return null;
......
......@@ -11,7 +11,7 @@ const mapStateToProps = (state, { id }) => ({
});
@connect(mapStateToProps)
export default class StatusQuote extends React.PureComponent {
export default class StatusQuote extends PureComponent {
static contextTypes = {
router: PropTypes.object,
......
......@@ -32,7 +32,7 @@ const mapStateToProps = state => {
export default @connect(mapStateToProps)
@injectIntl
class CommunityTimeline extends React.PureComponent {
class CommunityTimeline extends PureComponent {
static contextTypes = {
router: PropTypes.object,
......
......@@ -2,7 +2,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
export default class QuotedStatusPreview extends React.PureComponent {
export default class QuotedStatusPreview extends PureComponent {
static propTypes = {
status: ImmutablePropTypes.map,
account: ImmutablePropTypes.map,
......
......@@ -9,7 +9,7 @@ const messages = defineMessages({
schedule_status: { id: 'schedule_status.title', defaultMessage: 'Schedule Status' },
});
class DatePickerWrapper extends React.PureComponent {
class DatePickerWrapper extends PureComponent {
static propTypes = {
value: PropTypes.string,
onClick: PropTypes.func,
......@@ -27,7 +27,7 @@ class DatePickerWrapper extends React.PureComponent {
}
export default @injectIntl
class SchedulePostDropdown extends React.PureComponent {
class SchedulePostDropdown extends PureComponent {
static propTypes = {
date: PropTypes.instanceOf(Date),
......
......@@ -3,7 +3,7 @@ import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../../../components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.PureComponent {
class ColumnSettings extends PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
......
......@@ -144,7 +144,7 @@ const LAYOUT = {
const shouldHideFAB = path => path.match(/^\/posts\/|^\/search|^\/getting-started/);
class SwitchingColumnsArea extends React.PureComponent {
class SwitchingColumnsArea extends PureComponent {
static propTypes = {
children: PropTypes.node,
......@@ -251,7 +251,7 @@ class SwitchingColumnsArea extends React.PureComponent {
export default @connect(mapStateToProps)
@injectIntl
@withRouter
class UI extends React.PureComponent {
class UI extends PureComponent {
static contextTypes = {
router: PropTypes.object.isRequired,
......
......@@ -86,7 +86,7 @@ export const getPointerPosition = (el, event) => {
};
export default @injectIntl
class Video extends React.PureComponent {
class Video extends PureComponent {
static propTypes = {
preview: PropTypes.string,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment