Merge branch 'rm-react-immutable-pure-component' into 'main'

Remove react-immutable-pure-component

See merge request soapbox-pub/soapbox!3143
This commit is contained in:
Alex Gleason 2024-10-09 04:27:27 +00:00
commit c227ca48ac
3 changed files with 2 additions and 9 deletions

View File

@ -132,7 +132,6 @@
"react-error-boundary": "^4.0.11", "react-error-boundary": "^4.0.11",
"react-helmet": "^6.1.0", "react-helmet": "^6.1.0",
"react-hot-toast": "^2.4.0", "react-hot-toast": "^2.4.0",
"react-immutable-pure-component": "^2.2.2",
"react-inlinesvg": "^4.0.0", "react-inlinesvg": "^4.0.0",
"react-intl": "^6.0.0", "react-intl": "^6.0.0",
"react-motion": "^0.5.2", "react-motion": "^0.5.2",

View File

@ -1,7 +1,6 @@
import clsx from 'clsx'; import clsx from 'clsx';
import { List as ImmutableList } from 'immutable'; import { List as ImmutableList } from 'immutable';
import React from 'react'; import React, { PureComponent } from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import AutosuggestEmoji from 'soapbox/components/autosuggest-emoji'; import AutosuggestEmoji from 'soapbox/components/autosuggest-emoji';
import Icon from 'soapbox/components/icon'; import Icon from 'soapbox/components/icon';
@ -35,7 +34,7 @@ export interface IAutosuggestInput extends Pick<React.HTMLAttributes<HTMLInputEl
theme?: InputThemes; theme?: InputThemes;
} }
export default class AutosuggestInput extends ImmutablePureComponent<IAutosuggestInput> { export default class AutosuggestInput extends PureComponent<IAutosuggestInput> {
static defaultProps = { static defaultProps = {
autoFocus: false, autoFocus: false,

View File

@ -7192,11 +7192,6 @@ react-hot-toast@^2.4.0:
dependencies: dependencies:
goober "^2.1.10" goober "^2.1.10"
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@^4.0.0: react-inlinesvg@^4.0.0:
version "4.0.3" version "4.0.3"
resolved "https://registry.yarnpkg.com/react-inlinesvg/-/react-inlinesvg-4.0.3.tgz#69aa4d9c01b037abb800bfa103cb5591c6f3fe76" resolved "https://registry.yarnpkg.com/react-inlinesvg/-/react-inlinesvg-4.0.3.tgz#69aa4d9c01b037abb800bfa103cb5591c6f3fe76"