// @ts-nocheck import React from 'react'; import intl from 'react-intl-universal'; import styled from 'styled-components'; import { FastField, ErrorMessage, Field } from 'formik'; import { Classes, FormGroup, InputGroup, ControlGroup, } from '@blueprintjs/core'; import { inputIntent } from '@/utils'; import { FieldRequiredHint, FormattedMessage as T } from '@/components'; /** * Branch form dialog fields. */ function BranchFormFields() { return (
{/*------------ Branch Name -----------*/} {({ form, field, meta: { error, touched } }) => ( } labelInfo={} intent={inputIntent({ error, touched })} inline={true} helperText={} className={'form-group--branch_name'} > )} {/*------------ Branch Code -----------*/} {({ form, field, meta: { error, touched } }) => ( } intent={inputIntent({ error, touched })} inline={true} helperText={} className={'form-group--branch_name'} > )} {/*------------ Branch Address -----------*/} {({ form, field, meta: { error, touched } }) => ( } className={'form-group--branch_address'} > )} {/*------------ Branch Address City & Country-----------*/} } > {({ field, meta: { error, touched } }) => ( )} {({ field, meta: { error, touched } }) => ( )} {/*------------ Phone Number -----------*/} {({ form, field, meta: { error, touched } }) => ( } className={'form-group--phone_number'} > )} {/*------------ Email -----------*/} {({ form, field, meta: { error, touched } }) => ( } className={'form-group--email'} > )} {/*------------ Website -----------*/} {({ form, field, meta: { error, touched } }) => ( } className={'form-group--website'} > )}
); } export default BranchFormFields; const BranchAddressWrap = styled.div` margin-left: 160px; `;