Transfer.

This commit is contained in:
Patrick Fic
2019-12-12 19:28:26 -08:00
parent d0244e0767
commit 9d74cc19c9
3 changed files with 13 additions and 229 deletions

View File

@@ -1,6 +1,6 @@
import React, { useState } from "react";
import AlertComponent from "../alert/alert.component";
import { Form, Icon, Input, Row, Col } from "antd";
import { Form, Input, Row, Col, Button } from "antd";
function JobTombstone({ job, ...otherProps }) {
const [jobContext, setJobContext] = useState(job);
@@ -16,7 +16,8 @@ function JobTombstone({ job, ...otherProps }) {
const handleSubmit = e => {
e.preventDefault();
this.props.form.validateFieldsAndScroll((err, values) => {
otherProps.form.validateFieldsAndScroll((err, values) => {
if (!err) {
console.log("Received values of form: ", values);
}
@@ -41,6 +42,11 @@ function JobTombstone({ job, ...otherProps }) {
})(<Input name="ro_number" onChange={handleChange} />)}
</Form.Item>
</Row>
<Form.Item>
<Button type="primary" htmlType="submit">
Save
</Button>
</Form.Item>
</Col>
</Form>
);