Пример #1
0
const mapStateToProps = state => {
  const fightId = getFightId(state);

  return ({
    fightId,
    report: getReport(state),
    fight: getFightById(state, fightId),
    combatants: getCombatants(state),
  });
};
Пример #2
0
const mapStateToProps = state => {
  const fightId = getFightId(state);

  return ({
    reportCode: getReportCode(state),
    fightId,
    playerName: getPlayerName(state),
    playerId: getPlayerId(state),

    report: getReport(state),
    fight: getFightById(state, fightId),
    combatants: getCombatants(state),

    articleId: getArticleId(state),

    error: getError(state),
  });
};