How to use the topcoder-react-lib.actions.smp function in topcoder-react-lib

To help you get started, we’ve selected a few topcoder-react-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github topcoder-platform / community-app / src / shared / containers / SubmissionManagement / index.jsx View on Github external
onSubmissionDeleteConfirmed: (challengeId, submissionId) => {
    dispatch(actions.smp.deleteSubmissionInit());
    dispatch(actions.smp.deleteSubmissionDone(challengeId, submissionId));
  },
github topcoder-platform / community-app / src / shared / actions / smp.js View on Github external
/**
 * 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,
  },
}));
github topcoder-platform / community-app / src / shared / containers / SubmissionManagement / index.jsx View on Github external
onDownloadSubmission: (...payload) => {
    dispatch(actions.smp.downloadSubmission(...payload));
  },