From 3c1b9c6154914530e8d5a539cfc3d8e04eb262dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 12 Nov 2022 16:52:06 +0100 Subject: [PATCH] lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/components/media_gallery.tsx | 1 - .../features/soapbox_config/components/icon-picker-menu.js | 1 - app/soapbox/features/ui/components/modal_root.tsx | 3 +-- app/soapbox/reducers/notifications.ts | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/soapbox/components/media_gallery.tsx b/app/soapbox/components/media_gallery.tsx index f899d7ba4..390a300ca 100644 --- a/app/soapbox/components/media_gallery.tsx +++ b/app/soapbox/components/media_gallery.tsx @@ -526,7 +526,6 @@ const MediaGallery: React.FC = (props) => { /> )); - useEffect(() => { if (node.current) { const { offsetWidth } = node.current; diff --git a/app/soapbox/features/soapbox_config/components/icon-picker-menu.js b/app/soapbox/features/soapbox_config/components/icon-picker-menu.js index c89b00488..a9b6be2f2 100644 --- a/app/soapbox/features/soapbox_config/components/icon-picker-menu.js +++ b/app/soapbox/features/soapbox_config/components/icon-picker-menu.js @@ -18,7 +18,6 @@ const listenerOptions = supportsPassiveEvents ? { passive: true } : false; const categoriesSort = ['custom']; - class IconPickerMenu extends React.PureComponent { static propTypes = { diff --git a/app/soapbox/features/ui/components/modal_root.tsx b/app/soapbox/features/ui/components/modal_root.tsx index f9900d569..4e7a82e04 100644 --- a/app/soapbox/features/ui/components/modal_root.tsx +++ b/app/soapbox/features/ui/components/modal_root.tsx @@ -1,4 +1,3 @@ -import PropTypes from 'prop-types'; import React from 'react'; import Base from 'soapbox/components/modal_root'; @@ -35,8 +34,8 @@ import { } from 'soapbox/features/ui/util/async-components'; import BundleContainer from '../containers/bundle_container'; -import { BundleProps } from './bundle'; +import { BundleProps } from './bundle'; import BundleModalError from './bundle_modal_error'; import ModalLoading from './modal_loading'; diff --git a/app/soapbox/reducers/notifications.ts b/app/soapbox/reducers/notifications.ts index d8c27292b..24185ee0a 100644 --- a/app/soapbox/reducers/notifications.ts +++ b/app/soapbox/reducers/notifications.ts @@ -114,7 +114,6 @@ const countFuture = (notifications: ImmutableOrderedMap { const top = state.top;