Remove React, PureComponent global import, added those imports to files directly
• Remove: - React, PureComponent global import and added those imports to files directly
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Fragment } from 'react'
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
@@ -72,7 +72,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||
<div className={[_s.default].join(' ')}>
|
||||
{
|
||||
!!group &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<Heading isCentered>
|
||||
{group.get('title')}
|
||||
</Heading>
|
||||
@@ -103,7 +103,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||
{intl.formatMessage(messages.members)}
|
||||
</Text>
|
||||
</div>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
</div>
|
||||
)
|
||||
@@ -113,7 +113,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||
<PanelLayout title={intl.formatMessage(messages.title)}>
|
||||
{
|
||||
!!group &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
|
||||
<Text className={_s.mb5}>
|
||||
{group.get('description')}
|
||||
@@ -185,7 +185,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||
|
||||
{
|
||||
!!tags &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<Divider isSmall />
|
||||
<GroupInfoPanelRow title={intl.formatMessage(messages.tags)} icon='shop'>
|
||||
<div className={[_s.default, _s.flexRow, _s.justifyContentEnd, _s.flexWrap, _s.pl5].join(' ')}>
|
||||
@@ -200,17 +200,17 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||
}
|
||||
</div>
|
||||
</GroupInfoPanelRow>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
</PanelLayout>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
class GroupInfoPanelRow extends PureComponent {
|
||||
class GroupInfoPanelRow extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
icon: PropTypes.string,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import React from 'react'
|
||||
import Block from '../block'
|
||||
import Heading from '../heading'
|
||||
import Button from '../button'
|
||||
import Text from '../text'
|
||||
|
||||
export default class PanelLayout extends PureComponent {
|
||||
export default class PanelLayout extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
title: PropTypes.string,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { URL_GAB_PRO } from '../../constants'
|
||||
import PanelLayout from './panel_layout';
|
||||
@@ -12,7 +13,7 @@ const messages = defineMessages({
|
||||
|
||||
export default
|
||||
@injectIntl
|
||||
class ProPanel extends PureComponent {
|
||||
class ProPanel extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Fragment } from 'react'
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
@@ -60,10 +60,10 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||
<div className={[_s.default].join(' ')}>
|
||||
{
|
||||
hasNote &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<div className={_s.dangerousContent} dangerouslySetInnerHTML={content} />
|
||||
<Divider isSmall />
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
|
||||
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
|
||||
@@ -83,7 +83,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||
|
||||
{
|
||||
hasBadges &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<Divider isSmall />
|
||||
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
|
||||
{
|
||||
@@ -105,7 +105,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
|
||||
{
|
||||
@@ -113,7 +113,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||
<div className={[_s.default]}>
|
||||
{
|
||||
fields.map((pair, i) => (
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<Divider isSmall />
|
||||
<dl className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')} key={`profile-field-${i}`}>
|
||||
<dt
|
||||
@@ -127,7 +127,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||
dangerouslySetInnerHTML={{ __html: pair.get('value_emojified') }}
|
||||
/>
|
||||
</dl>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
))
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { monthlyExpensesComplete } from '../../initial_state'
|
||||
import {
|
||||
@@ -18,7 +19,7 @@ const messages = defineMessages({
|
||||
|
||||
export default
|
||||
@injectIntl
|
||||
class ProgressPanel extends PureComponent {
|
||||
class ProgressPanel extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { fetchFeaturedProducts } from '../../actions/shop'
|
||||
import { URL_DISSENTER_SHOP } from '../../constants'
|
||||
@@ -21,7 +22,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
@injectIntl
|
||||
class ShopPanel extends PureComponent {
|
||||
class ShopPanel extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { me } from '../../initial_state'
|
||||
import { CX } from '../../constants'
|
||||
@@ -13,7 +14,7 @@ const messages = defineMessages({
|
||||
|
||||
export default
|
||||
@injectIntl
|
||||
class SignUpLogInPanel extends PureComponent {
|
||||
class SignUpLogInPanel extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { me } from '../../initial_state'
|
||||
import Button from '../button'
|
||||
@@ -13,7 +14,7 @@ const messages = defineMessages({
|
||||
|
||||
export default
|
||||
@injectIntl
|
||||
class SignUpPanel extends PureComponent {
|
||||
class SignUpPanel extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { NavLink } from 'react-router-dom'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { NavLink } from 'react-router-dom'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { fetchPopularSuggestions } from '../../actions/suggestions'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import {
|
||||
fetchRelatedSuggestions,
|
||||
|
||||
Reference in New Issue
Block a user