2019-01-17 14:34:44 +00:00
|
|
|
/* @flow */
|
|
|
|
|
2019-04-03 14:02:36 +00:00
|
|
|
import Distribution from 'Components/Distribution'
|
|
|
|
import PaySlip from 'Components/PaySlip'
|
|
|
|
import React, { Component } from 'react'
|
|
|
|
import { Trans } from 'react-i18next'
|
2019-04-24 10:19:30 +00:00
|
|
|
import { connect } from 'react-redux'
|
|
|
|
// $FlowFixMe
|
|
|
|
import { formValueSelector } from 'redux-form'
|
2019-01-17 14:34:44 +00:00
|
|
|
|
2019-04-24 10:19:30 +00:00
|
|
|
type OwnProps = {}
|
|
|
|
type Props = OwnProps & {
|
2019-02-01 12:31:57 +00:00
|
|
|
period: 'mois' | 'année'
|
|
|
|
}
|
2019-01-17 14:34:44 +00:00
|
|
|
|
2019-05-20 15:01:47 +00:00
|
|
|
export default (connect(state => ({
|
|
|
|
period: formValueSelector('conversation')(state, 'période')
|
|
|
|
}))(
|
2019-04-24 10:19:30 +00:00
|
|
|
class SalaryFirstExplanation extends Component<Props> {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<h2>
|
|
|
|
<Trans>À quoi servent mes cotisations ?</Trans>
|
|
|
|
</h2>
|
|
|
|
<Distribution />
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
<Trans>
|
|
|
|
{this.props.period === 'mois'
|
|
|
|
? 'Fiche de paie mensuelle'
|
|
|
|
: 'Détail annuel des cotisations'}
|
|
|
|
</Trans>
|
|
|
|
</h2>
|
|
|
|
<PaySlip />
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|
2019-01-17 14:34:44 +00:00
|
|
|
}
|
2019-04-24 10:19:30 +00:00
|
|
|
): React$ComponentType<OwnProps>)
|