Transfer.
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user