Revert "Merge branch 'remove-immutable-purecomponent' into 'develop'"
This reverts merge request !2201
This commit is contained in:
parent
59f63eb4f0
commit
f28886e77b
5 changed files with 13 additions and 3 deletions
|
@ -2,6 +2,7 @@ import { Portal } from '@reach/portal';
|
||||||
import classNames from 'clsx';
|
import classNames from 'clsx';
|
||||||
import { List as ImmutableList } from 'immutable';
|
import { List as ImmutableList } from 'immutable';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
|
|
||||||
import AutosuggestEmoji, { Emoji } from 'soapbox/components/autosuggest-emoji';
|
import AutosuggestEmoji, { Emoji } from 'soapbox/components/autosuggest-emoji';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
@ -35,7 +36,7 @@ export interface IAutosuggestInput extends Pick<React.HTMLAttributes<HTMLInputEl
|
||||||
theme?: InputThemes,
|
theme?: InputThemes,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class AutosuggestInput extends React.PureComponent<IAutosuggestInput> {
|
export default class AutosuggestInput extends ImmutablePureComponent<IAutosuggestInput> {
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { Portal } from '@reach/portal';
|
import { Portal } from '@reach/portal';
|
||||||
import classNames from 'clsx';
|
import classNames from 'clsx';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import Textarea from 'react-textarea-autosize';
|
import Textarea from 'react-textarea-autosize';
|
||||||
|
|
||||||
import { textAtCursorMatchesToken } from 'soapbox/utils/suggestions';
|
import { textAtCursorMatchesToken } from 'soapbox/utils/suggestions';
|
||||||
|
@ -32,7 +33,7 @@ interface IAutosuggesteTextarea {
|
||||||
children: React.ReactNode,
|
children: React.ReactNode,
|
||||||
}
|
}
|
||||||
|
|
||||||
class AutosuggestTextarea extends React.PureComponent<IAutosuggesteTextarea> {
|
class AutosuggestTextarea extends ImmutablePureComponent<IAutosuggesteTextarea> {
|
||||||
|
|
||||||
textarea: HTMLTextAreaElement | null = null;
|
textarea: HTMLTextAreaElement | null = null;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// import classNames from 'clsx';
|
// import classNames from 'clsx';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { HotKeys } from 'react-hotkeys';
|
import { HotKeys } from 'react-hotkeys';
|
||||||
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
||||||
|
@ -21,7 +22,7 @@ interface IEmojiSelector {
|
||||||
focused?: boolean,
|
focused?: boolean,
|
||||||
}
|
}
|
||||||
|
|
||||||
class EmojiSelector extends React.PureComponent<IEmojiSelector> {
|
class EmojiSelector extends ImmutablePureComponent<IEmojiSelector> {
|
||||||
|
|
||||||
static defaultProps: Partial<IEmojiSelector> = {
|
static defaultProps: Partial<IEmojiSelector> = {
|
||||||
onReact: () => { },
|
onReact: () => { },
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"> 0.5%",
|
"> 0.5%",
|
||||||
"last 2 versions",
|
"last 2 versions",
|
||||||
|
"not IE 11",
|
||||||
"not dead"
|
"not dead"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -148,6 +149,7 @@
|
||||||
"react-helmet": "^6.1.0",
|
"react-helmet": "^6.1.0",
|
||||||
"react-hot-toast": "^2.4.0",
|
"react-hot-toast": "^2.4.0",
|
||||||
"react-hotkeys": "^1.1.4",
|
"react-hotkeys": "^1.1.4",
|
||||||
|
"react-immutable-pure-component": "^2.2.2",
|
||||||
"react-inlinesvg": "^3.0.0",
|
"react-inlinesvg": "^3.0.0",
|
||||||
"react-intl": "^5.0.0",
|
"react-intl": "^5.0.0",
|
||||||
"react-motion": "^0.5.2",
|
"react-motion": "^0.5.2",
|
||||||
|
|
|
@ -9443,6 +9443,11 @@ react-hotkeys@^1.1.4:
|
||||||
mousetrap "^1.5.2"
|
mousetrap "^1.5.2"
|
||||||
prop-types "^15.6.0"
|
prop-types "^15.6.0"
|
||||||
|
|
||||||
|
react-immutable-pure-component@^2.2.2:
|
||||||
|
version "2.2.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-immutable-pure-component/-/react-immutable-pure-component-2.2.2.tgz#3014d3e20cd5a7a4db73b81f1f1464f4d351684b"
|
||||||
|
integrity sha512-vkgoMJUDqHZfXXnjVlG3keCxSO/U6WeDQ5/Sl0GK2cH8TOxEzQ5jXqDXHEL/jqk6fsNxV05oH5kD7VNMUE2k+A==
|
||||||
|
|
||||||
react-inlinesvg@^3.0.0:
|
react-inlinesvg@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/react-inlinesvg/-/react-inlinesvg-3.0.0.tgz#801c6bac1535334586708cd346f4b1125dcfa8f9"
|
resolved "https://registry.yarnpkg.com/react-inlinesvg/-/react-inlinesvg-3.0.0.tgz#801c6bac1535334586708cd346f4b1125dcfa8f9"
|
||||||
|
|
Loading…
Reference in a new issue