import React from 'react'; import { FormGroup } from '@blueprintjs/core'; import { FastField } from 'formik'; import { FormattedMessage as T } from 'components'; import { Row, Col, ListSelect } from 'components'; import { displayColumnsByOptions } from './constants'; /** * Financial statement - Display columns by and type select. */ export default function SelectsListColumnsBy(props) { const { formGroupProps, selectListProps } = props; return ( {({ form, field: { value }, meta: { error, touched } }) => ( } className="form-group-display-columns-by form-group--select-list bp3-fill" inline={false} {...formGroupProps} > { form.setFieldValue('displayColumnsType', item.key); }} popoverProps={{ minimal: true }} {...selectListProps} /> )} ); }