Remove unused 'initReportById' function
This commit is contained in:
parent
8df7d9c9ef
commit
b5aca1649d
1 changed files with 0 additions and 12 deletions
|
@ -38,17 +38,6 @@ const initReport = (account: Account, entities?: ReportedEntity) => (dispatch: A
|
||||||
return dispatch(openModal('REPORT'));
|
return dispatch(openModal('REPORT'));
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: no longer used. Can be removed.
|
|
||||||
const initReportById = (accountId: string) =>
|
|
||||||
(dispatch: AppDispatch, getState: () => RootState) => {
|
|
||||||
dispatch({
|
|
||||||
type: REPORT_INIT,
|
|
||||||
account: getState().accounts.get(accountId),
|
|
||||||
});
|
|
||||||
|
|
||||||
dispatch(openModal('REPORT'));
|
|
||||||
};
|
|
||||||
|
|
||||||
const cancelReport = () => ({
|
const cancelReport = () => ({
|
||||||
type: REPORT_CANCEL,
|
type: REPORT_CANCEL,
|
||||||
});
|
});
|
||||||
|
@ -119,7 +108,6 @@ export {
|
||||||
REPORT_BLOCK_CHANGE,
|
REPORT_BLOCK_CHANGE,
|
||||||
REPORT_RULE_CHANGE,
|
REPORT_RULE_CHANGE,
|
||||||
initReport,
|
initReport,
|
||||||
initReportById,
|
|
||||||
cancelReport,
|
cancelReport,
|
||||||
toggleStatusReport,
|
toggleStatusReport,
|
||||||
submitReport,
|
submitReport,
|
||||||
|
|
Loading…
Reference in a new issue