import React from 'react'; import { FastField } from 'formik'; import { DateInput } from '@blueprintjs/datetime'; import { Intent, FormGroup, InputGroup, Position, Classes, } from '@blueprintjs/core'; import { FormattedMessage as T } from 'react-intl'; import classNames from 'classnames'; import { CustomersMultiSelect, Row, Col, FieldHint } from 'components'; import { momentFormatter } from 'utils'; // import withCustomers from 'containers/Customers/withCustomers'; import { compose } from 'redux'; /** * AR Aging Summary - Drawer Header - General Fields. */ function ARAgingSummaryHeaderGeneral({ // #withCustomers customers, }) { return (
{({ form, field: { value }, meta: { error, touched } }) => ( } labelInfo={} fill={true} intent={error && Intent.DANGER} > { form.setFieldValue('asDate', selectedDate); }} popoverProps={{ position: Position.BOTTOM, minimal: true }} minimal={true} fill={true} /> )} {({ field, meta: { error, touched } }) => ( } labelInfo={} className={'form-group--aging-before-days'} intent={error && Intent.DANGER} > )} {({ field, meta: { error, touched } }) => ( } labelInfo={} className={'form-group--aging-periods'} intent={error && Intent.DANGER} > )} } className={classNames('form-group--select-list', Classes.FILL)} >
); } export default compose( // withCustomers(({ customers }) => ({ // customers, // })), )(ARAgingSummaryHeaderGeneral);