1
0
mirror of https://github.com/franjsco/tick3t synced 2025-06-05 22:19:18 +02:00

improvement: add link

This commit is contained in:
frab1t
2019-07-03 20:48:11 +02:00
parent 0896e98697
commit 0971956b2e

View File

@@ -7,6 +7,7 @@ import {
Label, Label,
Input Input
} from 'reactstrap'; } from 'reactstrap';
import { Link } from 'react-router-dom';
import { config } from '../../config'; import { config } from '../../config';
@@ -79,12 +80,12 @@ class CreateTicket extends Component {
} }
const body = { const body = {
firstName: state.firstName, firstName: state.firstName,
lastName: state.lastName, lastName: state.lastName,
email: state.email, email: state.email,
type: state.type, type: state.type,
subject: state.subject, subject: state.subject,
message: state.message message: state.message
} }
fetch(`${config.baseURL}tickets`, { fetch(`${config.baseURL}tickets`, {
@@ -251,6 +252,9 @@ class CreateTicket extends Component {
<FormGroup> <FormGroup>
<Button>Open Ticket</Button> <Button>Open Ticket</Button>
</FormGroup> </FormGroup>
<Link to="/">
Back to home
</Link>
</Col> </Col>
</Row> </Row>
</Form> </Form>