From b8bd395c40b4cc94604ebfbaf5417a145ba394f1 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 25 Apr 2021 00:39:45 +0300
Subject: feat: add Account form

---
 src/services/accounts/AccountForm.tsx | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 src/services/accounts/AccountForm.tsx

(limited to 'src/services/accounts/AccountForm.tsx')

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;
-- 
cgit v1.2.3

