import React from 'react'; import { FastField } from 'formik'; import { DateInput } from '@blueprintjs/datetime'; import { Intent, FormGroup, InputGroup, Position } from '@blueprintjs/core'; import { FormattedMessage as T } from 'react-intl'; import { Row, Col, FieldHint } from 'components'; import { momentFormatter } from 'utils'; /** * AR Aging Summary - Drawer Header - General Fields. */ export default function ARAgingSummaryHeaderGeneral({}) { 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} > )}
); }