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:
mgabdev
2020-08-17 15:07:16 -05:00
parent 92a89e2425
commit 43e384554c
293 changed files with 572 additions and 313 deletions

View File

@@ -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,