From b11ce2d2e4e71df48ceb65a3170bcf8b6d20eab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 18 Aug 2024 18:20:59 +0200 Subject: [PATCH] More fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- package.json | 2 +- src/actions/statuses.ts | 1 - src/components/location-search.tsx | 1 - src/components/scroll-top-button.tsx | 1 - src/features/auth-login/components/registration-form.tsx | 1 - src/features/compose/components/compose-form.tsx | 1 - yarn.lock | 8 ++++---- 7 files changed, 5 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 3b8e5dcee..b115b3386 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "multiselect-react-dropdown": "^2.0.25", "object-to-formdata": "^4.5.1", "path-browserify": "^1.0.1", - "pl-api": "^0.0.4", + "pl-api": "^0.0.5", "postcss": "^8.4.29", "process": "^0.11.10", "punycode": "^2.1.1", diff --git a/src/actions/statuses.ts b/src/actions/statuses.ts index 57397970c..67e9718ee 100644 --- a/src/actions/statuses.ts +++ b/src/actions/statuses.ts @@ -105,7 +105,6 @@ const editStatus = (statusId: string) => (dispatch: AppDispatch, getState: () => dispatch(openModal('COMPOSE')); }).catch(error => { dispatch({ type: STATUS_FETCH_SOURCE_FAIL, error }); - }); }; diff --git a/src/components/location-search.tsx b/src/components/location-search.tsx index 8bea96c03..cff8daf93 100644 --- a/src/components/location-search.tsx +++ b/src/components/location-search.tsx @@ -73,7 +73,6 @@ const LocationSearch: React.FC = ({ onSelected }) => { setLocationIds(ImmutableOrderedSet(locationIds)); }) .catch(noOp); - }, 900, { leading: true, trailing: true }), []); useEffect(() => { diff --git a/src/components/scroll-top-button.tsx b/src/components/scroll-top-button.tsx index 4e2d815a1..a3d70bb2b 100644 --- a/src/components/scroll-top-button.tsx +++ b/src/components/scroll-top-button.tsx @@ -52,7 +52,6 @@ const ScrollTopButton: React.FC = ({ setScrolled(scrollTop > threshold); setScrolledTop(scrollTop <= autoloadThreshold); - }, 150, { trailing: true }), [threshold, autoloadThreshold]); /** Scroll to top and trigger `onClick`. */ diff --git a/src/features/auth-login/components/registration-form.tsx b/src/features/auth-login/components/registration-form.tsx index aaf30cb22..a440ddb0e 100644 --- a/src/features/auth-login/components/registration-form.tsx +++ b/src/features/auth-login/components/registration-form.tsx @@ -181,7 +181,6 @@ const RegistrationForm: React.FC = ({ inviteToken }) => { setUsernameUnavailable(false); } }); - }, 1000, { trailing: true }), []); const onSubmit: React.FormEventHandler = () => { diff --git a/src/features/compose/components/compose-form.tsx b/src/features/compose/components/compose-form.tsx index ce20d080b..80dd5140d 100644 --- a/src/features/compose/components/compose-form.tsx +++ b/src/features/compose/components/compose-form.tsx @@ -144,7 +144,6 @@ const ComposeForm = ({ id, shouldCondense, autoFocus, clickab dispatch(submitCompose(id, { history })).then(() => { editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined); }).catch(() => {}); - }; const onSuggestionsClearRequested = () => { diff --git a/yarn.lock b/yarn.lock index 7cd2f972c..6aaff90e2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8390,10 +8390,10 @@ pkg-types@^1.0.3: mlly "^1.2.0" pathe "^1.1.0" -pl-api@^0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.4.tgz#416f4ed469a10b2c39db01ab63ca4839a2a9b024" - integrity sha512-NgNajifSHBju6D98KqjYVl/ztJw983h+Sw58zz8BLrhltIOk6ssOwmMeIk4p3lZ4+8NUOnnG9wgz6/ZwHjHn8g== +pl-api@^0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.5.tgz#23214f3308729e23a042af42b60f760a9fe6a781" + integrity sha512-TFYPVAjwtrr2SBDfbl8mZzFrCu3SyIJQbCouw4hbhQzapHZI/ZmhCL9SN/Vi5lWYmuwTqxCfRBE0AX4Zla0O7A== dependencies: blurhash "^2.0.5" http-link-header "^1.1.3"