Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onSubmissionDeleteConfirmed: (challengeId, submissionId) => {
dispatch(actions.smp.deleteSubmissionInit());
dispatch(actions.smp.deleteSubmissionDone(challengeId, submissionId));
},
/**
* My submissions management page specific actions.
*/
import _ from 'lodash';
import { createActions } from 'redux-actions';
import { actions } from 'topcoder-react-lib';
export default _.merge({ smp: actions.smp }, createActions({
SMP: {
SHOW_DETAILS: _.identity,
CANCEL_DELETE: _.noop,
CONFIRM_DELETE: _.identity,
},
}));
onDownloadSubmission: (...payload) => {
dispatch(actions.smp.downloadSubmission(...payload));
},