pl-fe: cleanup

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk 2024-12-04 17:08:11 +01:00
parent 615f2cb0cc
commit 7a85ef413b
2 changed files with 19 additions and 24 deletions

View file

@ -29,8 +29,6 @@ const ScheduledStatusActionBar: React.FC<IScheduledStatusActionBar> = ({ status
const { settings } = useSettingsStore();
const handleCancelClick = () => {
dispatch((_, getState) => {
const deleteModal = settings.deleteModal;
if (!deleteModal) {
dispatch(cancelScheduledStatus(status.id));
@ -42,7 +40,6 @@ const ScheduledStatusActionBar: React.FC<IScheduledStatusActionBar> = ({ status
onConfirm: () => dispatch(cancelScheduledStatus(status.id)),
});
}
});
};
return (

View file

@ -143,7 +143,6 @@ const Thread: React.FC<IThread> = ({
const handleModalReblog = (status: Pick<SelectedStatus, 'id'>) => dispatch(reblog(status));
const handleReblogClick = (status: SelectedStatus, e?: React.MouseEvent) => {
dispatch((_, getState) => {
const boostModal = settings.boostModal;
if (status.reblogged) {
dispatch(unreblog(status));
@ -154,7 +153,6 @@ const Thread: React.FC<IThread> = ({
openModal('BOOST', { statusId: status.id, onReblog: handleModalReblog });
}
}
});
};
const handleMentionClick = (account: Pick<Account, 'acct'>) => dispatch(mentionCompose(account));