import Distribution from 'Components/Distribution' import PaySlip from 'Components/PaySlip' import withTracker from 'Components/utils/withTracker' import { compose } from 'ramda' import React, { useRef } from 'react' import emoji from 'react-easy-emoji' import { Trans } from 'react-i18next' import { connect } from 'react-redux' import { formValueSelector } from 'redux-form' import * as Animate from 'Ui/animate' class ErrorBoundary extends React.Component { state = {} static getDerivedStateFromError() { return { error: 'The SalaryExplanation component triggered an error. This often happens in its subcomponents reducers' } } render() { if (this.state.error) return