pl-fe: cleanup
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
parent
615f2cb0cc
commit
7a85ef413b
2 changed files with 19 additions and 24 deletions
|
@ -29,8 +29,6 @@ const ScheduledStatusActionBar: React.FC<IScheduledStatusActionBar> = ({ status
|
||||||
const { settings } = useSettingsStore();
|
const { settings } = useSettingsStore();
|
||||||
|
|
||||||
const handleCancelClick = () => {
|
const handleCancelClick = () => {
|
||||||
dispatch((_, getState) => {
|
|
||||||
|
|
||||||
const deleteModal = settings.deleteModal;
|
const deleteModal = settings.deleteModal;
|
||||||
if (!deleteModal) {
|
if (!deleteModal) {
|
||||||
dispatch(cancelScheduledStatus(status.id));
|
dispatch(cancelScheduledStatus(status.id));
|
||||||
|
@ -42,7 +40,6 @@ const ScheduledStatusActionBar: React.FC<IScheduledStatusActionBar> = ({ status
|
||||||
onConfirm: () => dispatch(cancelScheduledStatus(status.id)),
|
onConfirm: () => dispatch(cancelScheduledStatus(status.id)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -143,7 +143,6 @@ const Thread: React.FC<IThread> = ({
|
||||||
const handleModalReblog = (status: Pick<SelectedStatus, 'id'>) => dispatch(reblog(status));
|
const handleModalReblog = (status: Pick<SelectedStatus, 'id'>) => dispatch(reblog(status));
|
||||||
|
|
||||||
const handleReblogClick = (status: SelectedStatus, e?: React.MouseEvent) => {
|
const handleReblogClick = (status: SelectedStatus, e?: React.MouseEvent) => {
|
||||||
dispatch((_, getState) => {
|
|
||||||
const boostModal = settings.boostModal;
|
const boostModal = settings.boostModal;
|
||||||
if (status.reblogged) {
|
if (status.reblogged) {
|
||||||
dispatch(unreblog(status));
|
dispatch(unreblog(status));
|
||||||
|
@ -154,7 +153,6 @@ const Thread: React.FC<IThread> = ({
|
||||||
openModal('BOOST', { statusId: status.id, onReblog: handleModalReblog });
|
openModal('BOOST', { statusId: status.id, onReblog: handleModalReblog });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleMentionClick = (account: Pick<Account, 'acct'>) => dispatch(mentionCompose(account));
|
const handleMentionClick = (account: Pick<Account, 'acct'>) => dispatch(mentionCompose(account));
|
||||||
|
|
Loading…
Reference in a new issue