import React, { Component } from "react"; import { connect } from "react-redux"; import PropTypes from "prop-types"; import { FormattedMessage } from "react-intl"; import { Modal, Button } from "react-bootstrap"; import _ from "lodash"; import styled from "styled-components"; import { getActivities } from "../../actions/ActivitiesActions"; import ActivityElement from "./ActivityElement"; import ActivityDateElement from "./ActivityDateElement"; import { WHITE_COLOR, COLOR_CONCRETE, COLOR_MINE_SHAFT, COLOR_GRAY_LIGHT_YADCF } from "../../../app/constants/colors"; const StyledBottom = styled(Button)` display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; touch-action: manipulation; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; color: ${COLOR_MINE_SHAFT}; background-color: ${WHITE_COLOR}; border-color: ${COLOR_GRAY_LIGHT_YADCF}; `; const StyledModalBody = styled(Modal.Body)` background-color: ${COLOR_CONCRETE}; color: ${COLOR_MINE_SHAFT};; `; class GlobalActivitiesModal extends Component { constructor(props) { super(props); this.displayActivities = this.displayActivities.bind(this); this.addMoreActivities = this.addMoreActivities.bind(this); } displayActivities() { if (this.props.activities.length === 0) { return (