import React from "react"; import { Form, Input, Button, Row, Col, Select, Tag } from "antd"; import ClientService from "../service/ClientService"; import { useHistory } from "react-router-dom"; const { Option } = Select; export default function NewClientPage() { const history = useHistory(); const onSubmit = (values) => { ClientService.addClient(values).then((client) => history.push("/clients/" + client.id) ); }; const tailLayout = { wrapperCol: { offset: 8, span: 4 }, }; return ( <>
); }