import * as React from 'react' ; import { injectIntl , WrappedComponentProps } from 'react-intl' ; import { connect } from 'react-redux' ; import { RouteComponentProps } from 'react-router' ; import { SysAdminContentWrapper } from '@client/views/SysAdmin/SysAdminContentWrapper' ; import { MonthlyReports } from './MonthlyReports' ; type Props = WrappedComponentProps & RouteComponentProps ; type State = { } ; class ReportListComponent extends React . Component < Props , State > { render ( ) { const { history } = this . props ; return ( < SysAdminContentWrapper > < MonthlyReports history = { history } / > < /SysAdminContentWrapper>); } } function mapStateToProps ( state , props ) { const { history } = props ; return { history } ; } export const ReportList = connect ( mapStateToProps ) ( injectIntl ( ReportListComponent ) ) ;