diff --git a/packages/app/pages/submit.tsx b/packages/app/pages/submit.tsx index 4385623..0c8f977 100644 --- a/packages/app/pages/submit.tsx +++ b/packages/app/pages/submit.tsx @@ -1,99 +1,103 @@ import { FC, useState } from 'react'; import { - Form, Button, Select, Input, + Form, Button, Select, Input, Card, } from 'antd'; import { SendOutlined } from '@ant-design/icons'; +import Title from 'antd/lib/typography/Title'; const { Item } = Form; const { Option } = Select; const { TextArea, Group } = Input; const layout = { - labelCol: { span: 4 }, - wrapperCol: { span: 10 }, + labelCol: { span: 2 }, }; const tailLayout = { - wrapperCol: { offset: 4, span: 8 }, + wrapperCol: { offset: 2, span: 8 }, }; const Submitter: FC = () => { const [isLoading, setIsLoading] = useState(false); return ( -
{ - setIsLoading(true); - try { - const response = await fetch('/api/submit', { - method: 'POST', - body: JSON.stringify(values), - }); - // eslint-disable-next-line no-console - console.log(JSON.stringify(await response.json(), null, 2)); - } finally { - setIsLoading(false); - } - }} + Enviar} > - - - - + + + + + + - - - - - - + + + + + + + + + + + + + + +