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,10 +1,11 @@
|
||||
import React from 'react'
|
||||
import Block from '../../components/block'
|
||||
import Button from '../../components/button'
|
||||
import Divider from '../../components/divider'
|
||||
import Heading from '../../components/heading'
|
||||
import Text from '../../components/text'
|
||||
|
||||
export default class About extends PureComponent {
|
||||
export default class About extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import React from 'react'
|
||||
import Block from '../../components/block'
|
||||
import Button from '../../components/button'
|
||||
import Divider from '../../components/divider'
|
||||
import Heading from '../../components/heading'
|
||||
import Text from '../../components/text'
|
||||
|
||||
export default class DMCA extends PureComponent {
|
||||
export default class DMCA extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import React from 'react'
|
||||
import Block from '../../components/block'
|
||||
import Button from '../../components/button'
|
||||
import Divider from '../../components/divider'
|
||||
import Heading from '../../components/heading'
|
||||
import Text from '../../components/text'
|
||||
|
||||
export default class Investors extends PureComponent {
|
||||
export default class Investors extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import React from 'react'
|
||||
import Block from '../../components/block'
|
||||
import Button from '../../components/button'
|
||||
import Divider from '../../components/divider'
|
||||
import Heading from '../../components/heading'
|
||||
import Text from '../../components/text'
|
||||
|
||||
export default class PrivacyPolicy extends PureComponent {
|
||||
export default class PrivacyPolicy extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import React from 'react'
|
||||
import Block from '../../components/block'
|
||||
import Button from '../../components/button'
|
||||
import Divider from '../../components/divider'
|
||||
import Heading from '../../components/heading'
|
||||
import Text from '../../components/text'
|
||||
|
||||
export default class TermsOfSale extends PureComponent {
|
||||
export default class TermsOfSale extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import React from 'react'
|
||||
import Block from '../../components/block'
|
||||
import Button from '../../components/button'
|
||||
import Divider from '../../components/divider'
|
||||
import Heading from '../../components/heading'
|
||||
import Text from '../../components/text'
|
||||
|
||||
export default class TermsOfService extends PureComponent {
|
||||
export default class TermsOfService extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { List as ImmutableList } from 'immutable'
|
||||
|
||||
@@ -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 ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { expandCommunityTimeline } from '../actions/timelines'
|
||||
import StatusList from '../components/status_list'
|
||||
@@ -13,7 +14,7 @@ const mapStateToProps = (state) => ({
|
||||
export default
|
||||
@connect(mapStateToProps)
|
||||
@injectIntl
|
||||
class CommunityTimeline extends PureComponent {
|
||||
class CommunityTimeline extends React.PureComponent {
|
||||
|
||||
static contextTypes = {
|
||||
router: PropTypes.object,
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import React from 'react'
|
||||
import classNames from 'classnames/bind'
|
||||
import Button from '../../../components/button'
|
||||
|
||||
const cx = classNames.bind(_s)
|
||||
|
||||
export default class ComposeExtraButton extends PureComponent {
|
||||
export default class ComposeExtraButton extends React.PureComponent {
|
||||
static propTypes = {
|
||||
title: PropTypes.string,
|
||||
disabled: PropTypes.bool,
|
||||
|
||||
@@ -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 { openPopover } from '../../../actions/popover'
|
||||
import ComposeExtraButton from './compose_extra_button'
|
||||
@@ -23,7 +24,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@injectIntl
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class EmojiPickerButton extends PureComponent {
|
||||
class EmojiPickerButton extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { openModal } from '../../../actions/modal'
|
||||
import { openPopover } from '../../../actions/popover'
|
||||
@@ -29,7 +30,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@injectIntl
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class ExpiresPostButton extends PureComponent {
|
||||
class ExpiresPostButton extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
active: PropTypes.bool.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { clearSelectedGif } from '../../../actions/tenor'
|
||||
import Image from '../../../components/image'
|
||||
|
||||
@@ -9,7 +10,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
|
||||
export default
|
||||
@connect(null, mapDispatchToProps)
|
||||
class GifForm extends PureComponent {
|
||||
class GifForm extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
onClearSelectedGif: PropTypes.func.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import ComposeExtraButton from './compose_extra_button'
|
||||
import { openModal } from '../../../actions/modal'
|
||||
@@ -23,7 +24,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@injectIntl
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class GifSelectorButton extends PureComponent {
|
||||
class GifSelectorButton extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
|
||||
@@ -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 { addPoll, removePoll } from '../../../actions/compose'
|
||||
import ComposeExtraButton from './compose_extra_button'
|
||||
@@ -30,7 +31,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
@injectIntl
|
||||
class PollButton extends PureComponent {
|
||||
class PollButton extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
disabled: PropTypes.bool,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import classNames from 'classnames/bind'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { changeRichTextEditorControlsVisibility } from '../../../actions/compose'
|
||||
import { openModal } from '../../../actions/modal'
|
||||
@@ -29,7 +30,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@injectIntl
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class RichTextEditorButton extends PureComponent {
|
||||
class RichTextEditorButton extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
active: PropTypes.bool,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { openModal } from '../../../actions/modal'
|
||||
import { closePopover, openPopover } from '../../../actions/popover'
|
||||
@@ -35,7 +36,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@injectIntl
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class SchedulePostButton extends PureComponent {
|
||||
class SchedulePostButton extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
active: PropTypes.bool.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { changeComposeSensitivity } from '../../../actions/compose'
|
||||
import Switch from '../../../components/switch'
|
||||
@@ -22,7 +23,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@injectIntl
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class SensitiveMediaButton extends PureComponent {
|
||||
class SensitiveMediaButton extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
active: PropTypes.bool,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { changeComposeSpoilerness } from '../../../actions/compose'
|
||||
import ComposeExtraButton from './compose_extra_button'
|
||||
@@ -23,7 +24,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@injectIntl
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class SpoilerButton extends PureComponent {
|
||||
class SpoilerButton extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
active: PropTypes.bool,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { openPopover } from '../../../actions/popover'
|
||||
import ComposeExtraButton from './compose_extra_button'
|
||||
@@ -21,7 +22,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
@injectIntl
|
||||
class StatusVisibilityButton extends PureComponent {
|
||||
class StatusVisibilityButton extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ProgressBar from '../../../components/progress_bar'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { clearCompose } from '../../actions/compose'
|
||||
import ComposeFormContainer from './containers/compose_form_container'
|
||||
|
||||
@@ -7,7 +8,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
|
||||
export default
|
||||
@connect(null, mapDispatchToProps)
|
||||
class Compose extends PureComponent {
|
||||
class Compose extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
onClearCompose: PropTypes.func.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { List as ImmutableList } from 'immutable'
|
||||
import ComposeForm from '../components/compose_form'
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { 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 ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import debounce from 'lodash.debounce'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import debounce from 'lodash.debounce'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React from 'react'
|
||||
import ColumnIndicator from '../components/column_indicator'
|
||||
|
||||
export default class GenericNotFound extends PureComponent {
|
||||
export default class GenericNotFound extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
return (
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import isObject from 'lodash.isobject'
|
||||
@@ -9,7 +10,6 @@ import {
|
||||
GroupInfoPanel
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
|
||||
const mapStateToProps = (state, { params }) => {
|
||||
const groupId = isObject(params) ? params['id'] : null
|
||||
const group = state.getIn(['groups', groupId])
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Fragment } from 'react'
|
||||
import React from 'react'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
import { List as ImmutableList } from 'immutable'
|
||||
import { me } from '../initial_state'
|
||||
@@ -61,7 +61,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@injectIntl
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class GroupCollectionTimeline extends PureComponent {
|
||||
class GroupCollectionTimeline extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
params: PropTypes.object.isRequired,
|
||||
@@ -169,7 +169,7 @@ class GroupCollectionTimeline extends PureComponent {
|
||||
) : intl.formatMessage(messages.empty)
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<GroupSortBlock collectionType={collectionType} />
|
||||
<StatusList
|
||||
scrollKey={`group-collection-timeline-${collectionType}`}
|
||||
@@ -177,7 +177,7 @@ class GroupCollectionTimeline extends PureComponent {
|
||||
onLoadMore={this.handleLoadMore}
|
||||
emptyMessage={emptyMessage}
|
||||
/>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Fragment } from 'react'
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
@@ -259,7 +259,7 @@ class GroupCreate extends ImmutablePureComponent {
|
||||
|
||||
{
|
||||
memberCount >= 50 && !hasGroupSlug &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<Input
|
||||
id='group-id'
|
||||
title={intl.formatMessage(messages.idTitle)}
|
||||
@@ -276,7 +276,7 @@ class GroupCreate extends ImmutablePureComponent {
|
||||
</Text>
|
||||
|
||||
<Divider isInvisible />
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
|
||||
<Input
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import debounce from 'lodash.debounce'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Fragment } from 'react'
|
||||
import React from 'react'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
@@ -136,7 +136,7 @@ class GroupTimeline extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<GroupSortBlock />
|
||||
<StatusList
|
||||
scrollKey={`group-timeline-${groupId}`}
|
||||
@@ -144,7 +144,7 @@ class GroupTimeline extends ImmutablePureComponent {
|
||||
onLoadMore={this.handleLoadMore}
|
||||
emptyMessage={intl.formatMessage(messages.empty)}
|
||||
/>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
import isEqual from 'lodash.isequal'
|
||||
import { expandHashtagTimeline, clearTimeline } from '../actions/timelines'
|
||||
@@ -10,7 +11,7 @@ const mapStateToProps = (state, props) => ({
|
||||
|
||||
export default
|
||||
@connect(mapStateToProps)
|
||||
class HashtagTimeline extends PureComponent {
|
||||
class HashtagTimeline extends React.PureComponent {
|
||||
|
||||
disconnects = [];
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import throttle from 'lodash.throttle'
|
||||
@@ -27,7 +28,7 @@ export default
|
||||
@injectIntl
|
||||
@withRouter
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class HomeTimeline extends PureComponent {
|
||||
class HomeTimeline extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Fragment } from 'react'
|
||||
import React from 'react'
|
||||
import ReactSwipeableViews from 'react-swipeable-views'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
@@ -25,7 +25,7 @@ import Pagination from '../components/pagination'
|
||||
import ComposeFormContainer from './compose/containers/compose_form_container'
|
||||
import Responsive from './ui/util/responsive_component'
|
||||
|
||||
class SlideWelcome extends PureComponent {
|
||||
class SlideWelcome extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
return (
|
||||
@@ -172,7 +172,7 @@ class SlideGroups extends ImmutablePureComponent {
|
||||
|
||||
}
|
||||
|
||||
class SlideFirstPost extends PureComponent {
|
||||
class SlideFirstPost extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
submitted: PropTypes.bool.isRequired,
|
||||
@@ -187,7 +187,7 @@ class SlideFirstPost extends PureComponent {
|
||||
<div className={[_s.default, _s.py15, _s.px15].join(' ')}>
|
||||
{
|
||||
!submitted &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<Text size='large' className={_s.pb10}>Now let's make your very first Gab post! Please introduce yourself to the Gab community. How did you hear about Gab? What are you interested in?</Text>
|
||||
<br />
|
||||
|
||||
@@ -201,11 +201,11 @@ class SlideFirstPost extends PureComponent {
|
||||
autoJoinGroup
|
||||
/>
|
||||
</div>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
{
|
||||
submitted &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<Text size='large' align='center'>Your gab was posted!</Text>
|
||||
<br />
|
||||
<Text size='large' align='center'>Welcome to our community, remember to speak freely.</Text>
|
||||
@@ -216,7 +216,7 @@ class SlideFirstPost extends PureComponent {
|
||||
>
|
||||
Finish
|
||||
</Button>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
|
||||
</div>
|
||||
@@ -362,14 +362,14 @@ class Introduction extends ImmutablePureComponent {
|
||||
>
|
||||
{
|
||||
currentIndex === 3 &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<Responsive min={BREAKPOINT_EXTRA_SMALL}>
|
||||
<Text color='white' className={_s.px5}>{nextTitle}</Text>
|
||||
</Responsive>
|
||||
<Responsive max={BREAKPOINT_EXTRA_SMALL}>
|
||||
<Icon id='check' size='14px' className={_s.colorWhite} />
|
||||
</Responsive>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { changeListEditorTitle, submitListEditor } from '../actions/lists'
|
||||
import { closeModal } from '../actions/modal'
|
||||
@@ -30,7 +31,7 @@ const mapDispatchToProps = (dispatch, { isModal }) => ({
|
||||
export default
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
@injectIntl
|
||||
class ListCreate extends PureComponent {
|
||||
class ListCreate extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
value: PropTypes.string,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { injectIntl, defineMessages } from 'react-intl'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Fragment } from 'react'
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { 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 { withRouter } from 'react-router-dom'
|
||||
import isObject from 'lodash.isobject'
|
||||
import queryString from 'query-string'
|
||||
@@ -31,7 +32,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
export default
|
||||
@withRouter
|
||||
@connect(mapStateToProps, mapDispatchToProps)
|
||||
class News extends PureComponent {
|
||||
class News extends React.PureComponent {
|
||||
|
||||
static contextTypes = {
|
||||
router: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Fragment } from 'react'
|
||||
import React from 'react'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
@@ -160,7 +160,7 @@ class Notifications extends ImmutablePureComponent {
|
||||
this.scrollableContent = scrollableContent
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<TimelineQueueButtonHeader
|
||||
onClick={this.handleDequeueNotifications}
|
||||
count={totalQueuedNotificationsCount}
|
||||
@@ -182,7 +182,7 @@ class Notifications extends ImmutablePureComponent {
|
||||
{scrollableContent}
|
||||
</ScrollableList>
|
||||
</Block>
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { expandProTimeline } from '../actions/timelines'
|
||||
import { connectProStream } from '../actions/streaming'
|
||||
@@ -10,7 +11,7 @@ const messages = defineMessages({
|
||||
export default
|
||||
@injectIntl
|
||||
@connect(null)
|
||||
class ProTimeline extends PureComponent {
|
||||
class ProTimeline extends React.PureComponent {
|
||||
|
||||
static contextTypes = {
|
||||
router: PropTypes.object,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { fetchShortcuts } from '../actions/shortcuts'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
'use strict'
|
||||
|
||||
import React from 'react'
|
||||
import { HotKeys } from 'react-hotkeys'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { Switch, Redirect, withRouter } from 'react-router-dom'
|
||||
@@ -126,7 +127,7 @@ const keyMap = {
|
||||
goToRequests: 'g r',
|
||||
}
|
||||
|
||||
class SwitchingArea extends PureComponent {
|
||||
class SwitchingArea extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
children: PropTypes.node,
|
||||
@@ -265,7 +266,7 @@ export default
|
||||
@connect(mapStateToProps)
|
||||
@injectIntl
|
||||
@withRouter
|
||||
class UI extends PureComponent {
|
||||
class UI extends React.PureComponent {
|
||||
|
||||
static contextTypes = {
|
||||
router: PropTypes.object.isRequired,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import {
|
||||
fetchBundleRequest,
|
||||
fetchBundleSuccess,
|
||||
@@ -21,7 +22,7 @@ const noop = () => { }
|
||||
|
||||
export default
|
||||
@connect(null, mapDispatchToProps)
|
||||
class Bundle extends PureComponent {
|
||||
class Bundle extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
fetchComponent: PropTypes.func.isRequired,
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import React from 'react'
|
||||
import isEqual from 'lodash.isequal'
|
||||
import { APP_NAME } from '../../../constants'
|
||||
|
||||
class PageTitle extends PureComponent {
|
||||
class PageTitle extends React.PureComponent {
|
||||
|
||||
componentDidMount() {
|
||||
this.updatePageTitle(this.props)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Like react-motion's Motion, but reduces all animations to cross-fades
|
||||
// for the benefit of users with motion sickness.
|
||||
import Motion from 'react-motion/lib/Motion';
|
||||
import React from 'react'
|
||||
|
||||
const stylesToKeep = ['opacity', 'backgroundOpacity'];
|
||||
|
||||
@@ -9,7 +10,7 @@ const extractValue = (value) => {
|
||||
return (typeof value === 'object' && value && 'val' in value) ? value.val : value;
|
||||
};
|
||||
|
||||
class ReducedMotion extends PureComponent {
|
||||
class ReducedMotion extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
defaultStyle: PropTypes.object,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import {
|
||||
BREAKPOINT_EXTRA_LARGE,
|
||||
BREAKPOINT_LARGE,
|
||||
@@ -9,7 +10,7 @@ import { getWindowDimension } from '../../../utils/is_mobile'
|
||||
|
||||
const initialState = getWindowDimension()
|
||||
|
||||
export default class ResponsiveClassesComponent extends PureComponent {
|
||||
export default class ResponsiveClassesComponent extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
classNames: PropTypes.string,
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import React from 'react'
|
||||
import { getWindowDimension } from '../../../utils/is_mobile'
|
||||
|
||||
const initialState = getWindowDimension()
|
||||
|
||||
export default class Responsive extends PureComponent {
|
||||
export default class Responsive extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
min: PropTypes.number,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React from 'react'
|
||||
import Bundle from './bundle'
|
||||
|
||||
class WrappedBundle extends PureComponent {
|
||||
class WrappedBundle extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import React from 'react'
|
||||
import api from '../../../api'
|
||||
import { Route } from 'react-router-dom'
|
||||
import BundleColumnError from '../../../components/bundle_column_error'
|
||||
import Bundle from './bundle'
|
||||
import { me } from '../../../initial_state'
|
||||
|
||||
export default class WrappedRoute extends PureComponent {
|
||||
export default class WrappedRoute extends React.PureComponent {
|
||||
static propTypes = {
|
||||
component: PropTypes.func.isRequired,
|
||||
page: PropTypes.func.isRequired,
|
||||
|
||||
Reference in New Issue
Block a user