More fixes

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-08-18 18:20:59 +02:00
parent 9928b89c8f
commit b11ce2d2e4
7 changed files with 5 additions and 10 deletions

View File

@ -105,7 +105,6 @@ const editStatus = (statusId: string) => (dispatch: AppDispatch, getState: () =>
dispatch(openModal('COMPOSE'));
}).catch(error => {
dispatch({ type: STATUS_FETCH_SOURCE_FAIL, error });
});
};

View File

@ -73,7 +73,6 @@ const LocationSearch: React.FC<ILocationSearch> = ({ onSelected }) => {
setLocationIds(ImmutableOrderedSet(locationIds));
})
.catch(noOp);
}, 900, { leading: true, trailing: true }), []);
useEffect(() => {

View File

@ -52,7 +52,6 @@ const ScrollTopButton: React.FC<IScrollTopButton> = ({
setScrolled(scrollTop > threshold);
setScrolledTop(scrollTop <= autoloadThreshold);
}, 150, { trailing: true }), [threshold, autoloadThreshold]);
/** Scroll to top and trigger `onClick`. */

View File

@ -181,7 +181,6 @@ const RegistrationForm: React.FC<IRegistrationForm> = ({ inviteToken }) => {
setUsernameUnavailable(false);
}
});
}, 1000, { trailing: true }), []);
const onSubmit: React.FormEventHandler = () => {

View File

@ -144,7 +144,6 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
dispatch(submitCompose(id, { history })).then(() => {
editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
}).catch(() => {});
};
const onSuggestionsClearRequested = () => {