summaryrefslogtreecommitdiff
path: root/src/services/accounts/AccountForm.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-04-25 00:39:45 +0300
committereug-vs <eug-vs@keemail.me>2021-04-25 00:39:45 +0300
commitb8bd395c40b4cc94604ebfbaf5417a145ba394f1 (patch)
tree848840b017d83ee0b304140a76874d8d50d6c13c /src/services/accounts/AccountForm.tsx
parentd781d391241746be086db7dbef6d5361c735de6c (diff)
downloadcommercel-ui-b8bd395c40b4cc94604ebfbaf5417a145ba394f1.tar.gz
feat: add Account form
Diffstat (limited to 'src/services/accounts/AccountForm.tsx')
-rw-r--r--src/services/accounts/AccountForm.tsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/services/accounts/AccountForm.tsx b/src/services/accounts/AccountForm.tsx
new file mode 100644
index 0000000..fe834ed
--- /dev/null
+++ b/src/services/accounts/AccountForm.tsx
@@ -0,0 +1,22 @@
+import React from 'react';
+import { Form } from 'formik';
+import Input from '../../components/Input';
+import Select from '../../components/Select';
+
+const currencyOptions = [
+ { key: 'BYN', label: 'BYN' },
+ { key: 'USD', label: 'USD' },
+ { key: 'EUR', label: 'EUR' },
+];
+
+const AccountForm: React.FC = () => {
+ return (
+ <Form id="form">
+ <Input name="name" label="Название" />
+ <Input name="code" label="Номер счёта" />
+ <Select name="currency" label="Валюта" options={currencyOptions} />
+ </Form>
+ );
+};
+
+export default AccountForm;