More fixes
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
9928b89c8f
commit
b11ce2d2e4
7 changed files with 5 additions and 10 deletions
|
@ -133,7 +133,7 @@
|
||||||
"multiselect-react-dropdown": "^2.0.25",
|
"multiselect-react-dropdown": "^2.0.25",
|
||||||
"object-to-formdata": "^4.5.1",
|
"object-to-formdata": "^4.5.1",
|
||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
"pl-api": "^0.0.4",
|
"pl-api": "^0.0.5",
|
||||||
"postcss": "^8.4.29",
|
"postcss": "^8.4.29",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
"punycode": "^2.1.1",
|
"punycode": "^2.1.1",
|
||||||
|
|
|
@ -105,7 +105,6 @@ const editStatus = (statusId: string) => (dispatch: AppDispatch, getState: () =>
|
||||||
dispatch(openModal('COMPOSE'));
|
dispatch(openModal('COMPOSE'));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
dispatch({ type: STATUS_FETCH_SOURCE_FAIL, error });
|
dispatch({ type: STATUS_FETCH_SOURCE_FAIL, error });
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,6 @@ const LocationSearch: React.FC<ILocationSearch> = ({ onSelected }) => {
|
||||||
setLocationIds(ImmutableOrderedSet(locationIds));
|
setLocationIds(ImmutableOrderedSet(locationIds));
|
||||||
})
|
})
|
||||||
.catch(noOp);
|
.catch(noOp);
|
||||||
|
|
||||||
}, 900, { leading: true, trailing: true }), []);
|
}, 900, { leading: true, trailing: true }), []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
@ -52,7 +52,6 @@ const ScrollTopButton: React.FC<IScrollTopButton> = ({
|
||||||
|
|
||||||
setScrolled(scrollTop > threshold);
|
setScrolled(scrollTop > threshold);
|
||||||
setScrolledTop(scrollTop <= autoloadThreshold);
|
setScrolledTop(scrollTop <= autoloadThreshold);
|
||||||
|
|
||||||
}, 150, { trailing: true }), [threshold, autoloadThreshold]);
|
}, 150, { trailing: true }), [threshold, autoloadThreshold]);
|
||||||
|
|
||||||
/** Scroll to top and trigger `onClick`. */
|
/** Scroll to top and trigger `onClick`. */
|
||||||
|
|
|
@ -181,7 +181,6 @@ const RegistrationForm: React.FC<IRegistrationForm> = ({ inviteToken }) => {
|
||||||
setUsernameUnavailable(false);
|
setUsernameUnavailable(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}, 1000, { trailing: true }), []);
|
}, 1000, { trailing: true }), []);
|
||||||
|
|
||||||
const onSubmit: React.FormEventHandler = () => {
|
const onSubmit: React.FormEventHandler = () => {
|
||||||
|
|
|
@ -144,7 +144,6 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
|
||||||
dispatch(submitCompose(id, { history })).then(() => {
|
dispatch(submitCompose(id, { history })).then(() => {
|
||||||
editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
|
editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const onSuggestionsClearRequested = () => {
|
const onSuggestionsClearRequested = () => {
|
||||||
|
|
|
@ -8390,10 +8390,10 @@ pkg-types@^1.0.3:
|
||||||
mlly "^1.2.0"
|
mlly "^1.2.0"
|
||||||
pathe "^1.1.0"
|
pathe "^1.1.0"
|
||||||
|
|
||||||
pl-api@^0.0.4:
|
pl-api@^0.0.5:
|
||||||
version "0.0.4"
|
version "0.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.4.tgz#416f4ed469a10b2c39db01ab63ca4839a2a9b024"
|
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.5.tgz#23214f3308729e23a042af42b60f760a9fe6a781"
|
||||||
integrity sha512-NgNajifSHBju6D98KqjYVl/ztJw983h+Sw58zz8BLrhltIOk6ssOwmMeIk4p3lZ4+8NUOnnG9wgz6/ZwHjHn8g==
|
integrity sha512-TFYPVAjwtrr2SBDfbl8mZzFrCu3SyIJQbCouw4hbhQzapHZI/ZmhCL9SN/Vi5lWYmuwTqxCfRBE0AX4Zla0O7A==
|
||||||
dependencies:
|
dependencies:
|
||||||
blurhash "^2.0.5"
|
blurhash "^2.0.5"
|
||||||
http-link-header "^1.1.3"
|
http-link-header "^1.1.3"
|
||||||
|
|
Loading…
Reference in a new issue