Added webpack.ProvidePlugin for most used imports

Removed imports of React, connect, PropTypes throughout
Removed the "React" in React.Component/PureComponent
This commit is contained in:
mgabdev
2019-07-29 15:20:00 -04:00
parent dd6129e218
commit 2044648179
224 changed files with 92 additions and 532 deletions

View File

@@ -1,8 +1,6 @@
'use strict';
import React from 'react';
import { Provider, connect } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { INTRODUCTION_VERSION } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
@@ -37,7 +35,7 @@ const mapStateToProps = (state) => {
}
@connect(mapStateToProps)
class GabSocialMount extends React.PureComponent {
class GabSocialMount extends PureComponent {
static propTypes = {
showIntroduction: PropTypes.bool,
@@ -62,7 +60,7 @@ class GabSocialMount extends React.PureComponent {
}
export default class GabSocial extends React.PureComponent {
export default class GabSocial extends PureComponent {
static propTypes = {
locale: PropTypes.string.isRequired,