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,7 +1,8 @@
|
||||
import React from 'react'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import AboutLayout from '../layouts/about_layout'
|
||||
|
||||
class AboutPage extends PureComponent {
|
||||
class AboutPage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const { children, title } = this.props
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import DefaultLayout from '../layouts/default_layout'
|
||||
import {
|
||||
@@ -6,7 +7,7 @@ import {
|
||||
WhoToFollowPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class BasicPage extends PureComponent {
|
||||
class BasicPage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { openModal } from '../actions/modal'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
@@ -11,7 +12,7 @@ import {
|
||||
WhoToFollowPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class CommunityPage extends PureComponent {
|
||||
class CommunityPage extends React.PureComponent {
|
||||
|
||||
onOpenCommunityPageSettingsModal = () => {
|
||||
this.props.dispatch(openModal(MODAL_COMMUNITY_TIMELINE_SETTINGS))
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
export default class ErrorPage extends PureComponent {
|
||||
import React from 'react'
|
||||
|
||||
export default class ErrorPage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const { children } = this.props
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import React from 'react'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import ExploreLayout from '../layouts/explore_layout'
|
||||
|
||||
class ExplorePage extends PureComponent {
|
||||
class ExplorePage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const { children, title } = this.props
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Fragment } from 'react'
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
@@ -37,10 +37,10 @@ class GroupPage extends ImmutablePureComponent {
|
||||
|
||||
{
|
||||
!!relationships && isTimeline && relationships.get('member') &&
|
||||
<Fragment>
|
||||
<React.Fragment>
|
||||
<TimelineComposeBlock size={46} groupId={groupId} autoFocus />
|
||||
<Divider />
|
||||
</Fragment>
|
||||
</React.Fragment>
|
||||
}
|
||||
|
||||
{children}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { me } from '../initial_state'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
@@ -10,7 +11,7 @@ import {
|
||||
LinkFooter,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class GroupsPage extends PureComponent {
|
||||
class GroupsPage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { openModal } from '../actions/modal'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import isObject from 'lodash.isobject'
|
||||
@@ -11,7 +12,7 @@ import {
|
||||
WhoToFollowPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class HashtagPage extends PureComponent {
|
||||
class HashtagPage extends React.PureComponent {
|
||||
|
||||
onOpenHashtagPageSettingsModal = () => {
|
||||
const { params } = this.props
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import throttle from 'lodash.throttle'
|
||||
import { openModal } from '../actions/modal'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
@@ -21,7 +22,7 @@ import {
|
||||
ProgressPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class HomePage extends PureComponent {
|
||||
class HomePage extends React.PureComponent {
|
||||
|
||||
state = {
|
||||
lazyLoaded: false,
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import React from 'react'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import IntroductionLayout from '../layouts/introduction_layout'
|
||||
|
||||
export default class IntroductionPage extends PureComponent {
|
||||
export default class IntroductionPage 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 { defineMessages, injectIntl } from 'react-intl'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { openModal } from '../actions/modal'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
@@ -9,7 +10,7 @@ import {
|
||||
WhoToFollowPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class ListsPage extends PureComponent {
|
||||
class ListsPage extends React.PureComponent {
|
||||
|
||||
onOpenListCreateModal = () => {
|
||||
this.props.dispatch(openModal(MODAL_LIST_CREATE))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import Block from '../components/block'
|
||||
import DefaultLayout from '../layouts/default_layout'
|
||||
@@ -6,7 +7,7 @@ import {
|
||||
WhoToFollowPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class ModalPage extends PureComponent {
|
||||
class ModalPage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import DefaultLayout from '../layouts/default_layout'
|
||||
import {
|
||||
@@ -8,7 +9,7 @@ import {
|
||||
VerifiedAccountsPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class NewsPage extends PureComponent {
|
||||
class NewsPage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const { children, title } = this.props
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { setFilter } from '../actions/notifications'
|
||||
import { me } from '../initial_state'
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
WhoToFollowPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class NotificationsPage extends PureComponent {
|
||||
class NotificationsPage extends React.PureComponent {
|
||||
|
||||
onChangeActiveFilter(notificationType) {
|
||||
this.props.dispatch(setFilter('active', notificationType))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import DefaultLayout from '../layouts/default_layout'
|
||||
@@ -7,7 +8,7 @@ import {
|
||||
ProgressPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class ProPage extends PureComponent {
|
||||
class ProPage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const { intl, children } = this.props
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { BREAKPOINT_EXTRA_SMALL } from '../constants'
|
||||
import Responsive from '../features/ui/util/responsive_component'
|
||||
@@ -11,7 +12,7 @@ import {
|
||||
SignUpPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class SearchPage extends PureComponent {
|
||||
class SearchPage extends React.PureComponent {
|
||||
|
||||
componentWillMount() {
|
||||
const { intl } = this.props
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React from 'react'
|
||||
import SettingsLayout from '../layouts/settings_layout'
|
||||
|
||||
class SettingsPage extends PureComponent {
|
||||
class SettingsPage extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import { openModal } from '../actions/modal'
|
||||
import { MODAL_EDIT_SHORTCUTS } from '../constants'
|
||||
@@ -9,7 +10,7 @@ import {
|
||||
WhoToFollowPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class ShortcutsPage extends PureComponent {
|
||||
class ShortcutsPage extends React.PureComponent {
|
||||
|
||||
handleOnOpenEditShortcutsModal = () => {
|
||||
this.props.dispatch(openModal(MODAL_EDIT_SHORTCUTS))
|
||||
|
||||
Reference in New Issue
Block a user