From 973fb0c84b6060716eb875ae36d78554b76d950a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 8 Oct 2024 23:15:28 -0500 Subject: [PATCH] Remove react-immutable-pure-component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/package.json | 1 - packages/pl-fe/src/components/autosuggest-input.tsx | 5 ++--- packages/pl-fe/yarn.lock | 5 ----- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/pl-fe/package.json b/packages/pl-fe/package.json index 5a47f1579..483a47b37 100644 --- a/packages/pl-fe/package.json +++ b/packages/pl-fe/package.json @@ -116,7 +116,6 @@ "react-error-boundary": "^4.0.11", "react-helmet": "^6.1.0", "react-hot-toast": "^2.4.0", - "react-immutable-pure-component": "^2.2.2", "react-inlinesvg": "^4.0.0", "react-intl": "^6.7.0", "react-motion": "^0.5.2", diff --git a/packages/pl-fe/src/components/autosuggest-input.tsx b/packages/pl-fe/src/components/autosuggest-input.tsx index 8ed33e50e..340c70b54 100644 --- a/packages/pl-fe/src/components/autosuggest-input.tsx +++ b/packages/pl-fe/src/components/autosuggest-input.tsx @@ -1,7 +1,6 @@ import clsx from 'clsx'; import { List as ImmutableList } from 'immutable'; -import React from 'react'; -import ImmutablePureComponent from 'react-immutable-pure-component'; +import React, { PureComponent } from 'react'; import AutosuggestEmoji from 'pl-fe/components/autosuggest-emoji'; import Icon from 'pl-fe/components/icon'; @@ -35,7 +34,7 @@ interface IAutosuggestInput extends Pick, theme?: InputThemes; } -class AutosuggestInput extends ImmutablePureComponent { +class AutosuggestInput extends PureComponent { static defaultProps = { autoFocus: false, diff --git a/packages/pl-fe/yarn.lock b/packages/pl-fe/yarn.lock index 5d7539235..fa1f5ed1a 100644 --- a/packages/pl-fe/yarn.lock +++ b/packages/pl-fe/yarn.lock @@ -8670,11 +8670,6 @@ react-hot-toast@^2.4.0: dependencies: 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: version "4.1.3" resolved "https://registry.yarnpkg.com/react-inlinesvg/-/react-inlinesvg-4.1.3.tgz#671f083fd78934ec58afa5128460252dcae61177"