)
diff --git a/app/javascript/gabsocial/components/status.js b/app/javascript/gabsocial/components/status.js
index c710672a..adcc24e5 100644
--- a/app/javascript/gabsocial/components/status.js
+++ b/app/javascript/gabsocial/components/status.js
@@ -1,4 +1,4 @@
-import { Fragment } from 'react'
+import React from 'react'
import ImmutablePropTypes from 'react-immutable-proptypes'
import { defineMessages, injectIntl } from 'react-intl'
import ImmutablePureComponent from 'react-immutable-pure-component'
@@ -596,7 +596,7 @@ class Status extends ImmutablePureComponent {
{
status.get('replies_count') > 0 && !isChild && !isNotification && !commentsLimited &&
-
+
+
-
+
}
{
@@ -622,7 +622,7 @@ class Status extends ImmutablePureComponent {
onViewComments={this.handleClick}
/>
}
-
+
}
diff --git a/app/javascript/gabsocial/components/status_action_bar.js b/app/javascript/gabsocial/components/status_action_bar.js
index 91c9533b..ebf4488d 100644
--- a/app/javascript/gabsocial/components/status_action_bar.js
+++ b/app/javascript/gabsocial/components/status_action_bar.js
@@ -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'
diff --git a/app/javascript/gabsocial/components/status_action_bar_item.js b/app/javascript/gabsocial/components/status_action_bar_item.js
index 8d43cad2..cd5d3ad6 100644
--- a/app/javascript/gabsocial/components/status_action_bar_item.js
+++ b/app/javascript/gabsocial/components/status_action_bar_item.js
@@ -1,3 +1,4 @@
+import React from 'react'
import {
CX,
BREAKPOINT_EXTRA_SMALL,
@@ -6,7 +7,7 @@ import Responsive from '../features/ui/util/responsive_component'
import Button from './button'
import Text from './text'
-export default class StatusActionBarItem extends PureComponent {
+export default class StatusActionBarItem extends React.PureComponent {
static propTypes = {
title: PropTypes.string.isRequired,
diff --git a/app/javascript/gabsocial/components/status_card.js b/app/javascript/gabsocial/components/status_card.js
index ab5a4db9..e1d6cb3d 100644
--- a/app/javascript/gabsocial/components/status_card.js
+++ b/app/javascript/gabsocial/components/status_card.js
@@ -1,3 +1,4 @@
+import React from 'react'
import Immutable from 'immutable'
import ImmutablePropTypes from 'react-immutable-proptypes'
import ImmutablePureComponent from 'react-immutable-pure-component'
diff --git a/app/javascript/gabsocial/components/status_check_box.js b/app/javascript/gabsocial/components/status_check_box.js
index f849ca8e..52f80c11 100644
--- a/app/javascript/gabsocial/components/status_check_box.js
+++ b/app/javascript/gabsocial/components/status_check_box.js
@@ -1,3 +1,4 @@
+import React from 'react'
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { Set as ImmutableSet } from 'immutable';
diff --git a/app/javascript/gabsocial/components/status_content.js b/app/javascript/gabsocial/components/status_content.js
index 1208bcf9..39c7f0bf 100644
--- a/app/javascript/gabsocial/components/status_content.js
+++ b/app/javascript/gabsocial/components/status_content.js
@@ -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'
diff --git a/app/javascript/gabsocial/components/status_header.js b/app/javascript/gabsocial/components/status_header.js
index ecde93fe..fb9de132 100644
--- a/app/javascript/gabsocial/components/status_header.js
+++ b/app/javascript/gabsocial/components/status_header.js
@@ -1,4 +1,4 @@
-import { Fragment } from 'react'
+import React from 'react'
import { injectIntl, defineMessages } from 'react-intl'
import { NavLink } from 'react-router-dom'
import ImmutablePropTypes from 'react-immutable-proptypes'
@@ -172,19 +172,19 @@ class StatusHeader extends ImmutablePureComponent {
{
!!status.get('expires_at') &&
-
+
-
+
}
{
!!status.get('group') &&
-
+
-
+
}
{
status.get('revised_at') !== null &&
-
+
-
+
}
diff --git a/app/javascript/gabsocial/components/status_list.js b/app/javascript/gabsocial/components/status_list.js
index 36098ac2..de5c3d94 100644
--- a/app/javascript/gabsocial/components/status_list.js
+++ b/app/javascript/gabsocial/components/status_list.js
@@ -1,4 +1,4 @@
-import { Fragment } from 'react'
+import React from 'react'
import { Map as ImmutableMap, List as ImmutableList } from 'immutable'
import ImmutablePropTypes from 'react-immutable-proptypes'
import ImmutablePureComponent from 'react-immutable-pure-component'
@@ -232,11 +232,11 @@ class StatusList extends ImmutablePureComponent {
if (isPartial || (isLoading && statusIds.size === 0)) {
return (
-
+
-
+
)
}
@@ -313,7 +313,7 @@ class StatusList extends ImmutablePureComponent {
}
return (
-
+
{scrollableContent}
-
+
)
}
diff --git a/app/javascript/gabsocial/components/status_media.js b/app/javascript/gabsocial/components/status_media.js
index a66a1cf1..b22da671 100644
--- a/app/javascript/gabsocial/components/status_media.js
+++ b/app/javascript/gabsocial/components/status_media.js
@@ -1,3 +1,4 @@
+import React from 'react'
import { injectIntl } from 'react-intl'
import ImmutablePropTypes from 'react-immutable-proptypes'
import ImmutablePureComponent from 'react-immutable-pure-component'
diff --git a/app/javascript/gabsocial/components/status_prepend.js b/app/javascript/gabsocial/components/status_prepend.js
index 13c4f6c0..67b1a208 100644
--- a/app/javascript/gabsocial/components/status_prepend.js
+++ b/app/javascript/gabsocial/components/status_prepend.js
@@ -1,3 +1,4 @@
+import React from 'react'
import { NavLink } from 'react-router-dom'
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'
import ImmutablePropTypes from 'react-immutable-proptypes'
diff --git a/app/javascript/gabsocial/components/status_reply_indicator.js b/app/javascript/gabsocial/components/status_reply_indicator.js
index e2c1c2e8..637a5002 100644
--- a/app/javascript/gabsocial/components/status_reply_indicator.js
+++ b/app/javascript/gabsocial/components/status_reply_indicator.js
@@ -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';
diff --git a/app/javascript/gabsocial/components/switch.js b/app/javascript/gabsocial/components/switch.js
index 0a87e927..31f0a81b 100644
--- a/app/javascript/gabsocial/components/switch.js
+++ b/app/javascript/gabsocial/components/switch.js
@@ -1,7 +1,8 @@
+import React from 'react'
import { CX } from '../constants'
import Text from './text'
-export default class Switch extends PureComponent {
+export default class Switch extends React.PureComponent {
static propTypes = {
id: PropTypes.string.isRequired,
diff --git a/app/javascript/gabsocial/components/tab_bar.js b/app/javascript/gabsocial/components/tab_bar.js
index 24059c25..67da7a15 100644
--- a/app/javascript/gabsocial/components/tab_bar.js
+++ b/app/javascript/gabsocial/components/tab_bar.js
@@ -1,3 +1,4 @@
+import React from 'react'
import ResponsiveClassesComponent from '../features/ui/util/responsive_classes_component';
import TabBarItem from './tab_bar_item'
@@ -6,7 +7,7 @@ import TabBarItem from './tab_bar_item'
* @param {array} [props.tabs] - tab bar data for creating `TabBarItem`
* @param {bool} [props.isLarge] - to style the tab bar larger
*/
-export default class TabBar extends PureComponent {
+export default class TabBar extends React.PureComponent {
static propTypes = {
tabs: PropTypes.array,
diff --git a/app/javascript/gabsocial/components/tab_bar_item.js b/app/javascript/gabsocial/components/tab_bar_item.js
index 30467750..f3b14370 100644
--- a/app/javascript/gabsocial/components/tab_bar_item.js
+++ b/app/javascript/gabsocial/components/tab_bar_item.js
@@ -1,3 +1,4 @@
+import React from 'react'
import { withRouter } from 'react-router-dom'
import { CX } from '../constants'
import Button from './button'
@@ -13,7 +14,7 @@ import Text from './text'
*/
export default
@withRouter
-class TabBarItem extends PureComponent {
+class TabBarItem extends React.PureComponent {
static propTypes = {
isLarge: PropTypes.bool,
diff --git a/app/javascript/gabsocial/components/text.js b/app/javascript/gabsocial/components/text.js
index 5916b127..71abbb63 100644
--- a/app/javascript/gabsocial/components/text.js
+++ b/app/javascript/gabsocial/components/text.js
@@ -1,3 +1,4 @@
+import React from 'react'
import classNames from 'classnames/bind'
// Bind CSS Modules global variable `_s` to classNames module
@@ -51,7 +52,7 @@ const ALIGNMENTS = {
* @param {string} [props.tagName='span'] tagName of the text element
* @param {string} [props.weight='normal'] weight of the text
*/
-export default class Text extends PureComponent {
+export default class Text extends React.PureComponent {
static propTypes = {
align: PropTypes.oneOf(Object.keys(ALIGNMENTS)),
diff --git a/app/javascript/gabsocial/components/textarea.js b/app/javascript/gabsocial/components/textarea.js
index b04f57c2..7f470e49 100644
--- a/app/javascript/gabsocial/components/textarea.js
+++ b/app/javascript/gabsocial/components/textarea.js
@@ -1,9 +1,10 @@
+import React from 'react'
import classNames from 'classnames/bind'
import Text from './text'
const cx = classNames.bind(_s)
-export default class Textarea extends PureComponent {
+export default class Textarea extends React.PureComponent {
static propTypes = {
placeholder: PropTypes.string,
prependIcon: PropTypes.string,
diff --git a/app/javascript/gabsocial/components/timeline_compose_block.js b/app/javascript/gabsocial/components/timeline_compose_block.js
index 53d26f44..b99c37cf 100644
--- a/app/javascript/gabsocial/components/timeline_compose_block.js
+++ b/app/javascript/gabsocial/components/timeline_compose_block.js
@@ -1,3 +1,4 @@
+import React from 'react'
import ImmutablePureComponent from 'react-immutable-pure-component'
import ImmutablePropTypes from 'react-immutable-proptypes'
import { injectIntl, defineMessages } from 'react-intl'
diff --git a/app/javascript/gabsocial/components/timeline_queue_button_header.js b/app/javascript/gabsocial/components/timeline_queue_button_header.js
index 3d5d2226..40796398 100644
--- a/app/javascript/gabsocial/components/timeline_queue_button_header.js
+++ b/app/javascript/gabsocial/components/timeline_queue_button_header.js
@@ -1,3 +1,4 @@
+import React from 'react'
import { FormattedMessage } from 'react-intl'
import throttle from 'lodash.throttle'
import classNames from 'classnames/bind'
@@ -8,7 +9,7 @@ import Text from './text'
const cx = classNames.bind(_s)
-export default class TimelineQueueButtonHeader extends PureComponent {
+export default class TimelineQueueButtonHeader extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
diff --git a/app/javascript/gabsocial/components/trends_item.js b/app/javascript/gabsocial/components/trends_item.js
index 6446247f..d07c35a2 100644
--- a/app/javascript/gabsocial/components/trends_item.js
+++ b/app/javascript/gabsocial/components/trends_item.js
@@ -1,4 +1,4 @@
-import { Fragment } from 'react'
+import React from 'react'
import { urlRegex } from '../features/ui/util/url_regex'
import {
CX,
@@ -9,7 +9,7 @@ import DotTextSeperator from './dot_text_seperator'
import RelativeTimestamp from './relative_timestamp'
import Text from './text'
-export default class TrendingItem extends PureComponent {
+export default class TrendingItem extends React.PureComponent {
static propTypes = {
index: PropTypes.number,
@@ -66,11 +66,11 @@ export default class TrendingItem extends PureComponent {
if (isHidden) {
return (
-
+
{correctedTitle}
{!descriptionHasLink && correctedDescription}
{correctedAuthor}
-
+
)
}
diff --git a/app/javascript/gabsocial/components/upload_area.js b/app/javascript/gabsocial/components/upload_area.js
index 8144be37..85befbd7 100644
--- a/app/javascript/gabsocial/components/upload_area.js
+++ b/app/javascript/gabsocial/components/upload_area.js
@@ -1,3 +1,4 @@
+import React from 'react'
import { defineMessages, injectIntl } from 'react-intl'
import spring from 'react-motion/lib/spring'
import Motion from '../features/ui/util/reduced_motion'
@@ -9,7 +10,7 @@ const messages = defineMessages({
export default
@injectIntl
-class UploadArea extends PureComponent {
+class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.bool,
diff --git a/app/javascript/gabsocial/components/user_stat.js b/app/javascript/gabsocial/components/user_stat.js
index a5ef03cf..6504d57c 100644
--- a/app/javascript/gabsocial/components/user_stat.js
+++ b/app/javascript/gabsocial/components/user_stat.js
@@ -1,3 +1,4 @@
+import React from 'react'
import { NavLink } from 'react-router-dom'
import { CX } from '../constants'
import Text from './text'
@@ -8,7 +9,7 @@ import Text from './text'
* @param {string} props.to - location to go to on click
* @param {string} props.value - top value
*/
-export default class UserStat extends PureComponent {
+export default class UserStat extends React.PureComponent {
static propTypes = {
title: PropTypes.string.isRequired,
diff --git a/app/javascript/gabsocial/components/video.js b/app/javascript/gabsocial/components/video.js
index 67790be8..3911986f 100644
--- a/app/javascript/gabsocial/components/video.js
+++ b/app/javascript/gabsocial/components/video.js
@@ -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'
diff --git a/app/javascript/gabsocial/components/zoomable_image.js b/app/javascript/gabsocial/components/zoomable_image.js
index 3ac31760..33b1e752 100644
--- a/app/javascript/gabsocial/components/zoomable_image.js
+++ b/app/javascript/gabsocial/components/zoomable_image.js
@@ -1,3 +1,5 @@
+import React from 'react'
+
const MIN_SCALE = 1
const MAX_SCALE = 4
@@ -14,7 +16,7 @@ const clamp = (min, max, value) => {
return Math.min(max, Math.max(min, value))
}
-export default class ZoomableImage extends PureComponent {
+export default class ZoomableImage extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
diff --git a/app/javascript/gabsocial/containers/display.js b/app/javascript/gabsocial/containers/display.js
index ee180bc9..02c9c2a9 100644
--- a/app/javascript/gabsocial/containers/display.js
+++ b/app/javascript/gabsocial/containers/display.js
@@ -1,3 +1,4 @@
+import React from 'react'
import {
FONT_SIZES,
THEMES,
@@ -5,7 +6,7 @@ import {
DEFAULT_FONT_SIZE,
} from '../constants'
-class Display extends PureComponent {
+class Display extends React.PureComponent {
state = {
theme: this.props.theme,
diff --git a/app/javascript/gabsocial/containers/gabsocial.js b/app/javascript/gabsocial/containers/gabsocial.js
index 2a04acb0..ff724d96 100644
--- a/app/javascript/gabsocial/containers/gabsocial.js
+++ b/app/javascript/gabsocial/containers/gabsocial.js
@@ -1,5 +1,6 @@
'use strict'
+import React from 'react'
import { Provider } from 'react-redux'
import configureStore from '../store/configureStore'
import { BrowserRouter, Route } from 'react-router-dom'
@@ -36,7 +37,7 @@ const mapStateToProps = (state) => ({
})
@connect(mapStateToProps)
-class GabSocialMount extends PureComponent {
+class GabSocialMount extends React.PureComponent {
static propTypes = {
shownOnboarding: PropTypes.bool.isRequired,
@@ -80,7 +81,7 @@ class GabSocialMount extends PureComponent {
}
-export default class GabSocial extends PureComponent {
+export default class GabSocial extends React.PureComponent {
static propTypes = {
locale: PropTypes.string.isRequired,
diff --git a/app/javascript/gabsocial/containers/media_container.js b/app/javascript/gabsocial/containers/media_container.js
index b622f9b7..b783e784 100644
--- a/app/javascript/gabsocial/containers/media_container.js
+++ b/app/javascript/gabsocial/containers/media_container.js
@@ -1,4 +1,4 @@
-import React, { PureComponent, Fragment } from 'react';
+import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { IntlProvider, addLocaleData } from 'react-intl';
@@ -14,7 +14,7 @@ addLocaleData(localeData);
const MEDIA_COMPONENTS = { MediaGallery, Video, Card, Poll };
-export default class MediaContainer extends PureComponent {
+export default class MediaContainer extends React.PureComponent {
static propTypes = {
locale: PropTypes.string.isRequired,
@@ -49,7 +49,7 @@ export default class MediaContainer extends PureComponent {
return (
-
+
{[].map.call(components, (component, i) => {
const componentName = component.getAttribute('data-component');
const Component = MEDIA_COMPONENTS[componentName];
@@ -72,7 +72,7 @@ export default class MediaContainer extends PureComponent {
component,
);
})}
-
+
);
}
diff --git a/app/javascript/gabsocial/containers/notification_container.js b/app/javascript/gabsocial/containers/notification_container.js
index 7ab3f4bf..6f8970dc 100644
--- a/app/javascript/gabsocial/containers/notification_container.js
+++ b/app/javascript/gabsocial/containers/notification_container.js
@@ -1,3 +1,4 @@
+import React from 'react'
import { List as ImmutableList } from 'immutable'
import { makeGetNotification } from '../selectors'
import Notification from '../components/notification'
diff --git a/app/javascript/gabsocial/containers/status_container.js b/app/javascript/gabsocial/containers/status_container.js
index f0853bd3..2123d749 100644
--- a/app/javascript/gabsocial/containers/status_container.js
+++ b/app/javascript/gabsocial/containers/status_container.js
@@ -1,3 +1,4 @@
+import React from 'react'
import { FormattedMessage } from 'react-intl'
import {
Map as ImmutableMap,
diff --git a/app/javascript/gabsocial/features/about/about.js b/app/javascript/gabsocial/features/about/about.js
index 24d8c2c0..c7813f6c 100644
--- a/app/javascript/gabsocial/features/about/about.js
+++ b/app/javascript/gabsocial/features/about/about.js
@@ -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() {
diff --git a/app/javascript/gabsocial/features/about/dmca.js b/app/javascript/gabsocial/features/about/dmca.js
index 15376a80..42fe7635 100644
--- a/app/javascript/gabsocial/features/about/dmca.js
+++ b/app/javascript/gabsocial/features/about/dmca.js
@@ -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() {
diff --git a/app/javascript/gabsocial/features/about/investors.js b/app/javascript/gabsocial/features/about/investors.js
index a167017f..a0cdc029 100644
--- a/app/javascript/gabsocial/features/about/investors.js
+++ b/app/javascript/gabsocial/features/about/investors.js
@@ -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() {
diff --git a/app/javascript/gabsocial/features/about/privacy_policy.js b/app/javascript/gabsocial/features/about/privacy_policy.js
index 8f71dc99..fd584748 100644
--- a/app/javascript/gabsocial/features/about/privacy_policy.js
+++ b/app/javascript/gabsocial/features/about/privacy_policy.js
@@ -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() {
diff --git a/app/javascript/gabsocial/features/about/terms_of_sale.js b/app/javascript/gabsocial/features/about/terms_of_sale.js
index d6d77fd9..98058972 100644
--- a/app/javascript/gabsocial/features/about/terms_of_sale.js
+++ b/app/javascript/gabsocial/features/about/terms_of_sale.js
@@ -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() {
diff --git a/app/javascript/gabsocial/features/about/terms_of_service.js b/app/javascript/gabsocial/features/about/terms_of_service.js
index 5fe5e36f..3aedbf3b 100644
--- a/app/javascript/gabsocial/features/about/terms_of_service.js
+++ b/app/javascript/gabsocial/features/about/terms_of_service.js
@@ -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() {
diff --git a/app/javascript/gabsocial/features/account_gallery.js b/app/javascript/gabsocial/features/account_gallery.js
index 84253457..24eb73bd 100644
--- a/app/javascript/gabsocial/features/account_gallery.js
+++ b/app/javascript/gabsocial/features/account_gallery.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/account_timeline.js b/app/javascript/gabsocial/features/account_timeline.js
index 77236b35..bb3b48df 100644
--- a/app/javascript/gabsocial/features/account_timeline.js
+++ b/app/javascript/gabsocial/features/account_timeline.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/blocked_accounts.js b/app/javascript/gabsocial/features/blocked_accounts.js
index b55e1c29..da41d96c 100644
--- a/app/javascript/gabsocial/features/blocked_accounts.js
+++ b/app/javascript/gabsocial/features/blocked_accounts.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/bookmarked_statuses.js b/app/javascript/gabsocial/features/bookmarked_statuses.js
index 5118a739..969dc4fa 100644
--- a/app/javascript/gabsocial/features/bookmarked_statuses.js
+++ b/app/javascript/gabsocial/features/bookmarked_statuses.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/community_timeline.js b/app/javascript/gabsocial/features/community_timeline.js
index 31a5da45..6a15841f 100644
--- a/app/javascript/gabsocial/features/community_timeline.js
+++ b/app/javascript/gabsocial/features/community_timeline.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/compose_extra_button.js b/app/javascript/gabsocial/features/compose/components/compose_extra_button.js
index e7f45520..8cf9d12e 100644
--- a/app/javascript/gabsocial/features/compose/components/compose_extra_button.js
+++ b/app/javascript/gabsocial/features/compose/components/compose_extra_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/compose_form.js b/app/javascript/gabsocial/features/compose/components/compose_form.js
index f69f28fb..c87df89e 100644
--- a/app/javascript/gabsocial/features/compose/components/compose_form.js
+++ b/app/javascript/gabsocial/features/compose/components/compose_form.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/compose/components/emoji_picker_button.js b/app/javascript/gabsocial/features/compose/components/emoji_picker_button.js
index e80e7607..1d762fc1 100644
--- a/app/javascript/gabsocial/features/compose/components/emoji_picker_button.js
+++ b/app/javascript/gabsocial/features/compose/components/emoji_picker_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/expires_post_button.js b/app/javascript/gabsocial/features/compose/components/expires_post_button.js
index 71f0dc6b..488db6ab 100644
--- a/app/javascript/gabsocial/features/compose/components/expires_post_button.js
+++ b/app/javascript/gabsocial/features/compose/components/expires_post_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/gif_form.js b/app/javascript/gabsocial/features/compose/components/gif_form.js
index b1373eb3..7bf0dd82 100644
--- a/app/javascript/gabsocial/features/compose/components/gif_form.js
+++ b/app/javascript/gabsocial/features/compose/components/gif_form.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/gif_selector_button.js b/app/javascript/gabsocial/features/compose/components/gif_selector_button.js
index 16c1ab99..62474d69 100644
--- a/app/javascript/gabsocial/features/compose/components/gif_selector_button.js
+++ b/app/javascript/gabsocial/features/compose/components/gif_selector_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/media_upload_button.js b/app/javascript/gabsocial/features/compose/components/media_upload_button.js
index f8feebae..6013d2d2 100644
--- a/app/javascript/gabsocial/features/compose/components/media_upload_button.js
+++ b/app/javascript/gabsocial/features/compose/components/media_upload_button.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/compose/components/media_upload_item.js b/app/javascript/gabsocial/features/compose/components/media_upload_item.js
index 195bd496..cc0e7b99 100644
--- a/app/javascript/gabsocial/features/compose/components/media_upload_item.js
+++ b/app/javascript/gabsocial/features/compose/components/media_upload_item.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/compose/components/poll_button.js b/app/javascript/gabsocial/features/compose/components/poll_button.js
index 64f058ee..7b4718f7 100644
--- a/app/javascript/gabsocial/features/compose/components/poll_button.js
+++ b/app/javascript/gabsocial/features/compose/components/poll_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/poll_form.js b/app/javascript/gabsocial/features/compose/components/poll_form.js
index f9bf87c7..0ec67a09 100644
--- a/app/javascript/gabsocial/features/compose/components/poll_form.js
+++ b/app/javascript/gabsocial/features/compose/components/poll_form.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/compose/components/rich_text_editor_button.js b/app/javascript/gabsocial/features/compose/components/rich_text_editor_button.js
index 5a48a459..3896f757 100644
--- a/app/javascript/gabsocial/features/compose/components/rich_text_editor_button.js
+++ b/app/javascript/gabsocial/features/compose/components/rich_text_editor_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/schedule_post_button.js b/app/javascript/gabsocial/features/compose/components/schedule_post_button.js
index 4a1936ac..08cfe7a7 100644
--- a/app/javascript/gabsocial/features/compose/components/schedule_post_button.js
+++ b/app/javascript/gabsocial/features/compose/components/schedule_post_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/sensitive_media_button.js b/app/javascript/gabsocial/features/compose/components/sensitive_media_button.js
index a25d9235..55a0775b 100644
--- a/app/javascript/gabsocial/features/compose/components/sensitive_media_button.js
+++ b/app/javascript/gabsocial/features/compose/components/sensitive_media_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/spoiler_button.js b/app/javascript/gabsocial/features/compose/components/spoiler_button.js
index 4a062361..146e79e1 100644
--- a/app/javascript/gabsocial/features/compose/components/spoiler_button.js
+++ b/app/javascript/gabsocial/features/compose/components/spoiler_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/status_visibility_button.js b/app/javascript/gabsocial/features/compose/components/status_visibility_button.js
index 0e432fed..9d1138c5 100644
--- a/app/javascript/gabsocial/features/compose/components/status_visibility_button.js
+++ b/app/javascript/gabsocial/features/compose/components/status_visibility_button.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/components/upload_form.js b/app/javascript/gabsocial/features/compose/components/upload_form.js
index 502f27ed..aeb4d590 100644
--- a/app/javascript/gabsocial/features/compose/components/upload_form.js
+++ b/app/javascript/gabsocial/features/compose/components/upload_form.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/compose/compose.js b/app/javascript/gabsocial/features/compose/compose.js
index 60dc9806..067db4fa 100644
--- a/app/javascript/gabsocial/features/compose/compose.js
+++ b/app/javascript/gabsocial/features/compose/compose.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/compose/containers/compose_form_container.js b/app/javascript/gabsocial/features/compose/containers/compose_form_container.js
index 18ae2ac1..b8cacf59 100644
--- a/app/javascript/gabsocial/features/compose/containers/compose_form_container.js
+++ b/app/javascript/gabsocial/features/compose/containers/compose_form_container.js
@@ -1,3 +1,4 @@
+import React from 'react'
import { List as ImmutableList } from 'immutable'
import ComposeForm from '../components/compose_form'
import {
diff --git a/app/javascript/gabsocial/features/follow_requests.js b/app/javascript/gabsocial/features/follow_requests.js
index abc56aea..9ccd1334 100644
--- a/app/javascript/gabsocial/features/follow_requests.js
+++ b/app/javascript/gabsocial/features/follow_requests.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/followers.js b/app/javascript/gabsocial/features/followers.js
index 75730838..6ad6626a 100644
--- a/app/javascript/gabsocial/features/followers.js
+++ b/app/javascript/gabsocial/features/followers.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/following.js b/app/javascript/gabsocial/features/following.js
index 8e146622..d7585eb2 100644
--- a/app/javascript/gabsocial/features/following.js
+++ b/app/javascript/gabsocial/features/following.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/generic_not_found.js b/app/javascript/gabsocial/features/generic_not_found.js
index 149d50bb..2bd97222 100644
--- a/app/javascript/gabsocial/features/generic_not_found.js
+++ b/app/javascript/gabsocial/features/generic_not_found.js
@@ -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 (
diff --git a/app/javascript/gabsocial/features/group_about.js b/app/javascript/gabsocial/features/group_about.js
index 1e54c10d..946bf7f9 100644
--- a/app/javascript/gabsocial/features/group_about.js
+++ b/app/javascript/gabsocial/features/group_about.js
@@ -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])
diff --git a/app/javascript/gabsocial/features/group_collection_timeline.js b/app/javascript/gabsocial/features/group_collection_timeline.js
index 3b2c725e..cb1619e4 100644
--- a/app/javascript/gabsocial/features/group_collection_timeline.js
+++ b/app/javascript/gabsocial/features/group_collection_timeline.js
@@ -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 (
-
+
-
+
)
}
diff --git a/app/javascript/gabsocial/features/group_create.js b/app/javascript/gabsocial/features/group_create.js
index 3edca06b..9c5b74b2 100644
--- a/app/javascript/gabsocial/features/group_create.js
+++ b/app/javascript/gabsocial/features/group_create.js
@@ -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 &&
-
+
-
+
}
+
-
+
)
}
diff --git a/app/javascript/gabsocial/features/groups_collection.js b/app/javascript/gabsocial/features/groups_collection.js
index 04c63a51..d812ad91 100644
--- a/app/javascript/gabsocial/features/groups_collection.js
+++ b/app/javascript/gabsocial/features/groups_collection.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/hashtag_timeline.js b/app/javascript/gabsocial/features/hashtag_timeline.js
index 205bc436..90d81c2b 100644
--- a/app/javascript/gabsocial/features/hashtag_timeline.js
+++ b/app/javascript/gabsocial/features/hashtag_timeline.js
@@ -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 = [];
diff --git a/app/javascript/gabsocial/features/home_timeline.js b/app/javascript/gabsocial/features/home_timeline.js
index 9f9836b8..4417c697 100644
--- a/app/javascript/gabsocial/features/home_timeline.js
+++ b/app/javascript/gabsocial/features/home_timeline.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/introduction.js b/app/javascript/gabsocial/features/introduction.js
index 4c0ae363..d5766071 100644
--- a/app/javascript/gabsocial/features/introduction.js
+++ b/app/javascript/gabsocial/features/introduction.js
@@ -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 {
{
!submitted &&
-
+ 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?
@@ -201,11 +201,11 @@ class SlideFirstPost extends PureComponent {
autoJoinGroup
/>
-
+
}
{
submitted &&
-
+ Your gab was posted! Welcome to our community, remember to speak freely.
@@ -216,7 +216,7 @@ class SlideFirstPost extends PureComponent {
>
Finish
-
+
}
@@ -362,14 +362,14 @@ class Introduction extends ImmutablePureComponent {
>
{
currentIndex === 3 &&
-
+ {nextTitle}
-
+
}
diff --git a/app/javascript/gabsocial/features/liked_statuses.js b/app/javascript/gabsocial/features/liked_statuses.js
index e5ad8608..2019e923 100644
--- a/app/javascript/gabsocial/features/liked_statuses.js
+++ b/app/javascript/gabsocial/features/liked_statuses.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/list_create.js b/app/javascript/gabsocial/features/list_create.js
index 4a50058e..c73bf275 100644
--- a/app/javascript/gabsocial/features/list_create.js
+++ b/app/javascript/gabsocial/features/list_create.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/list_edit.js b/app/javascript/gabsocial/features/list_edit.js
index 96ea6c3d..025d9a62 100644
--- a/app/javascript/gabsocial/features/list_edit.js
+++ b/app/javascript/gabsocial/features/list_edit.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/list_timeline.js b/app/javascript/gabsocial/features/list_timeline.js
index b319a20f..5242c8f5 100644
--- a/app/javascript/gabsocial/features/list_timeline.js
+++ b/app/javascript/gabsocial/features/list_timeline.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/lists_directory.js b/app/javascript/gabsocial/features/lists_directory.js
index 7885c062..0b06cd31 100644
--- a/app/javascript/gabsocial/features/lists_directory.js
+++ b/app/javascript/gabsocial/features/lists_directory.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/mutes.js b/app/javascript/gabsocial/features/mutes.js
index 32c010b2..06ab7a0d 100644
--- a/app/javascript/gabsocial/features/mutes.js
+++ b/app/javascript/gabsocial/features/mutes.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/news.js b/app/javascript/gabsocial/features/news.js
index 2f6404dd..c7123f0b 100644
--- a/app/javascript/gabsocial/features/news.js
+++ b/app/javascript/gabsocial/features/news.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/notifications.js b/app/javascript/gabsocial/features/notifications.js
index 1b2bdd9f..b848447c 100644
--- a/app/javascript/gabsocial/features/notifications.js
+++ b/app/javascript/gabsocial/features/notifications.js
@@ -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 (
-
+
-
+
)
}
diff --git a/app/javascript/gabsocial/features/pro_timeline.js b/app/javascript/gabsocial/features/pro_timeline.js
index bc0d6aa3..0956a79f 100644
--- a/app/javascript/gabsocial/features/pro_timeline.js
+++ b/app/javascript/gabsocial/features/pro_timeline.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/search.js b/app/javascript/gabsocial/features/search.js
index 68090384..6f6b9505 100644
--- a/app/javascript/gabsocial/features/search.js
+++ b/app/javascript/gabsocial/features/search.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/shortcuts.js b/app/javascript/gabsocial/features/shortcuts.js
index ba223f16..65457b8b 100644
--- a/app/javascript/gabsocial/features/shortcuts.js
+++ b/app/javascript/gabsocial/features/shortcuts.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/status.js b/app/javascript/gabsocial/features/status.js
index 4ea37a95..6b0a043e 100644
--- a/app/javascript/gabsocial/features/status.js
+++ b/app/javascript/gabsocial/features/status.js
@@ -1,3 +1,4 @@
+import React from 'react'
import ImmutablePropTypes from 'react-immutable-proptypes'
import ImmutablePureComponent from 'react-immutable-pure-component'
import {
diff --git a/app/javascript/gabsocial/features/status_likes.js b/app/javascript/gabsocial/features/status_likes.js
index 21e36c37..6284b35c 100644
--- a/app/javascript/gabsocial/features/status_likes.js
+++ b/app/javascript/gabsocial/features/status_likes.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/status_reposts.js b/app/javascript/gabsocial/features/status_reposts.js
index 7736d038..e6277aab 100644
--- a/app/javascript/gabsocial/features/status_reposts.js
+++ b/app/javascript/gabsocial/features/status_reposts.js
@@ -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'
diff --git a/app/javascript/gabsocial/features/ui/ui.js b/app/javascript/gabsocial/features/ui/ui.js
index 7428c3fc..2f1328ef 100644
--- a/app/javascript/gabsocial/features/ui/ui.js
+++ b/app/javascript/gabsocial/features/ui/ui.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/ui/util/bundle.js b/app/javascript/gabsocial/features/ui/util/bundle.js
index 45d0af4a..64a9ab48 100644
--- a/app/javascript/gabsocial/features/ui/util/bundle.js
+++ b/app/javascript/gabsocial/features/ui/util/bundle.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/ui/util/page_title.js b/app/javascript/gabsocial/features/ui/util/page_title.js
index 3afd571f..cdd14f56 100644
--- a/app/javascript/gabsocial/features/ui/util/page_title.js
+++ b/app/javascript/gabsocial/features/ui/util/page_title.js
@@ -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)
diff --git a/app/javascript/gabsocial/features/ui/util/reduced_motion.js b/app/javascript/gabsocial/features/ui/util/reduced_motion.js
index 0bfbdb61..7b05f3d8 100644
--- a/app/javascript/gabsocial/features/ui/util/reduced_motion.js
+++ b/app/javascript/gabsocial/features/ui/util/reduced_motion.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/ui/util/responsive_classes_component.js b/app/javascript/gabsocial/features/ui/util/responsive_classes_component.js
index e5881269..a6baba9d 100644
--- a/app/javascript/gabsocial/features/ui/util/responsive_classes_component.js
+++ b/app/javascript/gabsocial/features/ui/util/responsive_classes_component.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/ui/util/responsive_component.js b/app/javascript/gabsocial/features/ui/util/responsive_component.js
index 5dba6bbc..303c4a66 100644
--- a/app/javascript/gabsocial/features/ui/util/responsive_component.js
+++ b/app/javascript/gabsocial/features/ui/util/responsive_component.js
@@ -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,
diff --git a/app/javascript/gabsocial/features/ui/util/wrapped_bundle.js b/app/javascript/gabsocial/features/ui/util/wrapped_bundle.js
index 5abc42ad..c97368f4 100644
--- a/app/javascript/gabsocial/features/ui/util/wrapped_bundle.js
+++ b/app/javascript/gabsocial/features/ui/util/wrapped_bundle.js
@@ -1,6 +1,7 @@
+import React from 'react'
import Bundle from './bundle'
-class WrappedBundle extends PureComponent {
+class WrappedBundle extends React.PureComponent {
render() {
const {
diff --git a/app/javascript/gabsocial/features/ui/util/wrapped_route.js b/app/javascript/gabsocial/features/ui/util/wrapped_route.js
index 8cdc8200..dc531835 100644
--- a/app/javascript/gabsocial/features/ui/util/wrapped_route.js
+++ b/app/javascript/gabsocial/features/ui/util/wrapped_route.js
@@ -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,
diff --git a/app/javascript/gabsocial/layouts/about_layout.js b/app/javascript/gabsocial/layouts/about_layout.js
index 7fb279e4..8f7161a6 100644
--- a/app/javascript/gabsocial/layouts/about_layout.js
+++ b/app/javascript/gabsocial/layouts/about_layout.js
@@ -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,
diff --git a/app/javascript/gabsocial/layouts/default_layout.js b/app/javascript/gabsocial/layouts/default_layout.js
index 09c4ab2f..821ae2fc 100644
--- a/app/javascript/gabsocial/layouts/default_layout.js
+++ b/app/javascript/gabsocial/layouts/default_layout.js
@@ -1,6 +1,7 @@
+import React from 'react'
import Layout from './layout'
-class DefaultLayout extends PureComponent {
+class DefaultLayout extends React.PureComponent {
render() {
const {
diff --git a/app/javascript/gabsocial/layouts/explore_layout.js b/app/javascript/gabsocial/layouts/explore_layout.js
index e9387811..66140f24 100644
--- a/app/javascript/gabsocial/layouts/explore_layout.js
+++ b/app/javascript/gabsocial/layouts/explore_layout.js
@@ -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'
diff --git a/app/javascript/gabsocial/layouts/group_layout.js b/app/javascript/gabsocial/layouts/group_layout.js
index 7096f502..7259a6b7 100644
--- a/app/javascript/gabsocial/layouts/group_layout.js
+++ b/app/javascript/gabsocial/layouts/group_layout.js
@@ -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'
diff --git a/app/javascript/gabsocial/layouts/introduction_layout.js b/app/javascript/gabsocial/layouts/introduction_layout.js
index 443ef103..8ab12a8f 100644
--- a/app/javascript/gabsocial/layouts/introduction_layout.js
+++ b/app/javascript/gabsocial/layouts/introduction_layout.js
@@ -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
diff --git a/app/javascript/gabsocial/layouts/layout.js b/app/javascript/gabsocial/layouts/layout.js
index 799f8532..665f6a96 100644
--- a/app/javascript/gabsocial/layouts/layout.js
+++ b/app/javascript/gabsocial/layouts/layout.js
@@ -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 {
diff --git a/app/javascript/gabsocial/layouts/profile_layout.js b/app/javascript/gabsocial/layouts/profile_layout.js
index 687c8bd0..6ae971fd 100644
--- a/app/javascript/gabsocial/layouts/profile_layout.js
+++ b/app/javascript/gabsocial/layouts/profile_layout.js
@@ -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'
diff --git a/app/javascript/gabsocial/layouts/settings_layout.js b/app/javascript/gabsocial/layouts/settings_layout.js
index aca9cbd1..5dcb2d03 100644
--- a/app/javascript/gabsocial/layouts/settings_layout.js
+++ b/app/javascript/gabsocial/layouts/settings_layout.js
@@ -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,
diff --git a/app/javascript/gabsocial/main.js b/app/javascript/gabsocial/main.js
index 5cfa6526..8acfc0e6 100644
--- a/app/javascript/gabsocial/main.js
+++ b/app/javascript/gabsocial/main.js
@@ -1,9 +1,10 @@
'use strict';
-import * as registerPushNotifications from './actions/push_notifications';
-import { default as GabSocial, store } from './containers/gabsocial';
+import React from 'react'
import ReactDOM from 'react-dom';
import ready from './ready';
+import * as registerPushNotifications from './actions/push_notifications';
+import { default as GabSocial, store } from './containers/gabsocial';
function main() {
ready(() => {
diff --git a/app/javascript/gabsocial/pages/about_page.js b/app/javascript/gabsocial/pages/about_page.js
index 0e0f5ef9..726c1175 100644
--- a/app/javascript/gabsocial/pages/about_page.js
+++ b/app/javascript/gabsocial/pages/about_page.js
@@ -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
diff --git a/app/javascript/gabsocial/pages/basic_page.js b/app/javascript/gabsocial/pages/basic_page.js
index 8de7f8ae..56d85d44 100644
--- a/app/javascript/gabsocial/pages/basic_page.js
+++ b/app/javascript/gabsocial/pages/basic_page.js
@@ -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 {
diff --git a/app/javascript/gabsocial/pages/community_page.js b/app/javascript/gabsocial/pages/community_page.js
index d04a54c9..37f06633 100644
--- a/app/javascript/gabsocial/pages/community_page.js
+++ b/app/javascript/gabsocial/pages/community_page.js
@@ -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))
diff --git a/app/javascript/gabsocial/pages/error_page.js b/app/javascript/gabsocial/pages/error_page.js
index b911ae2d..ef4aff8c 100644
--- a/app/javascript/gabsocial/pages/error_page.js
+++ b/app/javascript/gabsocial/pages/error_page.js
@@ -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
diff --git a/app/javascript/gabsocial/pages/explore_page.js b/app/javascript/gabsocial/pages/explore_page.js
index 5664dd10..c1c0a09a 100644
--- a/app/javascript/gabsocial/pages/explore_page.js
+++ b/app/javascript/gabsocial/pages/explore_page.js
@@ -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
diff --git a/app/javascript/gabsocial/pages/group_page.js b/app/javascript/gabsocial/pages/group_page.js
index e586a0b1..cb557216 100644
--- a/app/javascript/gabsocial/pages/group_page.js
+++ b/app/javascript/gabsocial/pages/group_page.js
@@ -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') &&
-
+
-
+
}
{children}
diff --git a/app/javascript/gabsocial/pages/groups_page.js b/app/javascript/gabsocial/pages/groups_page.js
index 4d4ed165..aac5d10d 100644
--- a/app/javascript/gabsocial/pages/groups_page.js
+++ b/app/javascript/gabsocial/pages/groups_page.js
@@ -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 {
diff --git a/app/javascript/gabsocial/pages/hashtag_page.js b/app/javascript/gabsocial/pages/hashtag_page.js
index a842a89c..7e090692 100644
--- a/app/javascript/gabsocial/pages/hashtag_page.js
+++ b/app/javascript/gabsocial/pages/hashtag_page.js
@@ -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
diff --git a/app/javascript/gabsocial/pages/home_page.js b/app/javascript/gabsocial/pages/home_page.js
index dbae588d..e26170e0 100644
--- a/app/javascript/gabsocial/pages/home_page.js
+++ b/app/javascript/gabsocial/pages/home_page.js
@@ -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,
diff --git a/app/javascript/gabsocial/pages/introduction_page.js b/app/javascript/gabsocial/pages/introduction_page.js
index 087c09d8..15191519 100644
--- a/app/javascript/gabsocial/pages/introduction_page.js
+++ b/app/javascript/gabsocial/pages/introduction_page.js
@@ -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 (
diff --git a/app/javascript/gabsocial/pages/list_page.js b/app/javascript/gabsocial/pages/list_page.js
index d7f08601..b552533a 100644
--- a/app/javascript/gabsocial/pages/list_page.js
+++ b/app/javascript/gabsocial/pages/list_page.js
@@ -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'
diff --git a/app/javascript/gabsocial/pages/lists_page.js b/app/javascript/gabsocial/pages/lists_page.js
index 8e6ade00..a1e26418 100644
--- a/app/javascript/gabsocial/pages/lists_page.js
+++ b/app/javascript/gabsocial/pages/lists_page.js
@@ -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))
diff --git a/app/javascript/gabsocial/pages/modal_page.js b/app/javascript/gabsocial/pages/modal_page.js
index 37e1da97..68dce5da 100644
--- a/app/javascript/gabsocial/pages/modal_page.js
+++ b/app/javascript/gabsocial/pages/modal_page.js
@@ -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 {
diff --git a/app/javascript/gabsocial/pages/news_page.js b/app/javascript/gabsocial/pages/news_page.js
index cc59df66..a9419652 100644
--- a/app/javascript/gabsocial/pages/news_page.js
+++ b/app/javascript/gabsocial/pages/news_page.js
@@ -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
diff --git a/app/javascript/gabsocial/pages/notifications_page.js b/app/javascript/gabsocial/pages/notifications_page.js
index d0fa8b5a..56d0d472 100644
--- a/app/javascript/gabsocial/pages/notifications_page.js
+++ b/app/javascript/gabsocial/pages/notifications_page.js
@@ -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))
diff --git a/app/javascript/gabsocial/pages/pro_page.js b/app/javascript/gabsocial/pages/pro_page.js
index 5c257909..c7ff212d 100644
--- a/app/javascript/gabsocial/pages/pro_page.js
+++ b/app/javascript/gabsocial/pages/pro_page.js
@@ -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
diff --git a/app/javascript/gabsocial/pages/profile_page.js b/app/javascript/gabsocial/pages/profile_page.js
index 006a324e..3cf6db79 100644
--- a/app/javascript/gabsocial/pages/profile_page.js
+++ b/app/javascript/gabsocial/pages/profile_page.js
@@ -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'
diff --git a/app/javascript/gabsocial/pages/search_page.js b/app/javascript/gabsocial/pages/search_page.js
index daf9c722..5ffb13aa 100644
--- a/app/javascript/gabsocial/pages/search_page.js
+++ b/app/javascript/gabsocial/pages/search_page.js
@@ -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
diff --git a/app/javascript/gabsocial/pages/settings_page.js b/app/javascript/gabsocial/pages/settings_page.js
index 965ef1c3..ae6e5a45 100644
--- a/app/javascript/gabsocial/pages/settings_page.js
+++ b/app/javascript/gabsocial/pages/settings_page.js
@@ -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 {
diff --git a/app/javascript/gabsocial/pages/shortcuts_page.js b/app/javascript/gabsocial/pages/shortcuts_page.js
index 1c5333d6..8bffdc95 100644
--- a/app/javascript/gabsocial/pages/shortcuts_page.js
+++ b/app/javascript/gabsocial/pages/shortcuts_page.js
@@ -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))
diff --git a/app/javascript/gabsocial/utils/numbers.js b/app/javascript/gabsocial/utils/numbers.js
index f6c4374e..89971a79 100644
--- a/app/javascript/gabsocial/utils/numbers.js
+++ b/app/javascript/gabsocial/utils/numbers.js
@@ -1,4 +1,4 @@
-import { Fragment } from 'react'
+import React from 'react'
import { FormattedNumber } from 'react-intl'
export const shortNumberFormat = (number) => {
@@ -11,9 +11,9 @@ export const shortNumberFormat = (number) => {
}
return (
-
+ k
-
+
)
}
diff --git a/config/webpack/shared.js b/config/webpack/shared.js
index 23a3fa6d..78eaa915 100644
--- a/config/webpack/shared.js
+++ b/config/webpack/shared.js
@@ -63,8 +63,6 @@ module.exports = {
plugins: [
new webpack.ProvidePlugin({
- React: 'react',
- PureComponent: ['react', 'PureComponent'],
connect: ['react-redux', 'connect'],
PropTypes: 'prop-types',
_s: `${resolve(settings.source_path)}/styles/global.css`,