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,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import {
|
||||
CX,
|
||||
BREAKPOINT_EXTRA_SMALL,
|
||||
@@ -15,7 +16,7 @@ import {
|
||||
SidebarXS,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
export default class SettingsLayout extends PureComponent {
|
||||
export default class SettingsLayout extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
title: PropTypes.string,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React from 'react'
|
||||
import Layout from './layout'
|
||||
|
||||
class DefaultLayout extends PureComponent {
|
||||
class DefaultLayout extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import throttle from 'lodash.throttle'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import Sticky from 'react-stickynode'
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import React from 'react'
|
||||
import Block from '../components/block'
|
||||
import Icon from '../components/icon'
|
||||
import BundleColumnError from '../components/bundle_column_error'
|
||||
import Bundle from '../features/ui/util/bundle'
|
||||
import { Introduction } from '../features/ui/util/async_components'
|
||||
|
||||
export default class IntroductionLayout extends PureComponent {
|
||||
export default class IntroductionLayout extends React.PureComponent {
|
||||
|
||||
renderError = (props) => {
|
||||
return <BundleColumnError {...props} />
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import Sticky from 'react-stickynode'
|
||||
import {
|
||||
CX,
|
||||
@@ -20,7 +21,7 @@ import {
|
||||
SidebarXS,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
class Layout extends PureComponent {
|
||||
class Layout extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { BREAKPOINT_EXTRA_SMALL } from '../constants'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
import {
|
||||
CX,
|
||||
BREAKPOINT_EXTRA_SMALL,
|
||||
@@ -13,7 +14,7 @@ import {
|
||||
SidebarXS,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
export default class SettingsLayout extends PureComponent {
|
||||
export default class SettingsLayout extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
title: PropTypes.string,
|
||||
|
||||
Reference in New Issue
Block a user