// @ts-nocheck import React from 'react'; import { FastField, Form, ErrorMessage } from 'formik'; import { Button, Intent, FormGroup, Classes } from '@blueprintjs/core'; import classNames from 'classnames'; import { TimezonePicker } from '@blueprintjs/timezone'; import { FFormGroup, FInputGroup, FSelect, FormattedMessage as T, } from '@/components'; import { Col, Row } from '@/components'; import { inputIntent } from '@/utils'; import { getFiscalYear } from '@/constants/fiscalYearOptions'; import { getLanguages } from '@/constants/languagesOptions'; import { getAllCurrenciesOptions } from '@/constants/currencies'; import { getAllCountries } from '@/utils/countries'; const countries = getAllCountries(); /** * Setup organization form. */ export default function SetupOrganizationForm({ isSubmitting, values }) { const FiscalYear = getFiscalYear(); const Languages = getLanguages(); const currencies = getAllCurrenciesOptions(); return (

{/* ---------- Organization name ---------- */} } fastField={true} > {/* ---------- Location ---------- */} } fastField={true} > } popoverProps={{ minimal: true }} fastField={true} /> {/* ---------- Base currency ---------- */} } fastField={true} > } fastField={true} /> {/* ---------- Language ---------- */} } fastField={true} > } popoverProps={{ minimal: true }} fastField={true} /> {/* --------- Fiscal Year ----------- */} } fastField={true} > } popoverProps={{ minimal: true }} fastField={true} /> {/* ---------- Time zone ---------- */} {({ form: { setFieldValue }, field: { value }, meta: { error, touched }, }) => ( } className={classNames( 'form-group--time-zone', 'form-group--select-list', Classes.FILL, )} intent={inputIntent({ error, touched })} helperText={} > { setFieldValue('timezone', item); }} valueDisplayFormat="composite" showLocalTimezone={true} placeholder={} popoverProps={{ minimal: true }} /> )}

); }