How to use the topcoder-react-lib.actions.members 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 / components / ProfilePage / Stats / SubTrackChallengeView / index.jsx View on Github external
function mapDispatchToProps(dispatch) {
  const action = actions.members;

  return {
    loadSubtrackChallenges: (handle, tokenV3, track, subTrack, pageNum, pageSize, refresh) => {
      const uuid = shortId();
      dispatch(action.getSubtrackChallengesInit(handle, uuid));
      dispatch(action.getSubtrackChallengesDone(
        uuid,
        handle,
        tokenV3,
        track,
        subTrack,
        pageNum,
        pageSize,
        refresh,
      ));
    },
github topcoder-platform / community-app / src / shared / containers / ProfileStats.jsx View on Github external
function mapDispatchToProps(dispatch) {
  const a = actions.members;
  const pa = actions.profile;

  return {
    loadStats: (handle) => {
      dispatch(a.getStatsInit(handle));
      dispatch(a.getStatsDone(handle));
      dispatch(pa.getInfoInit(handle));
      dispatch(pa.getInfoDone(handle));
      dispatch(a.getActiveChallengesInit(handle));
      dispatch(a.getActiveChallengesDone(handle));
    },
    loadStatsHistoryAndDistribution: (handle, track, subTrack) => {
      dispatch(a.getStatsHistoryInit(handle));
      dispatch(a.getStatsHistoryDone(handle));
      dispatch(a.getStatsDistributionInit(handle));
      dispatch(a.getStatsDistributionDone(handle, track, subTrack));