summaryrefslogtreecommitdiff
path: root/src/containers/ContractorForm.tsx
blob: a67eabeca3a4898ffcb46a46ddf8dac7b44e4529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from 'react';
import { Form, Field } from 'formik';
import Input from '../components/Input';

const ContractorForm: React.FC = () => {
  return (
    <Form id="form">
      <div className="max-w-lg">
        <Field name="name" label="Название" as={Input} />
        <Field name="vatId" label="УНП" as={Input} />
        <Field name="debt" type="number" label="Долг ($)" as={Input} />
      </div>
    </Form>
  );
};

export default ContractorForm;