mirror of
https://github.com/franjsco/tick3t
synced 2025-06-05 22:19:18 +02:00
improvement: add link
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
Label,
|
||||
Input
|
||||
} from 'reactstrap';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { config } from '../../config';
|
||||
|
||||
@@ -79,12 +80,12 @@ class CreateTicket extends Component {
|
||||
}
|
||||
|
||||
const body = {
|
||||
firstName: state.firstName,
|
||||
lastName: state.lastName,
|
||||
email: state.email,
|
||||
type: state.type,
|
||||
subject: state.subject,
|
||||
message: state.message
|
||||
firstName: state.firstName,
|
||||
lastName: state.lastName,
|
||||
email: state.email,
|
||||
type: state.type,
|
||||
subject: state.subject,
|
||||
message: state.message
|
||||
}
|
||||
|
||||
fetch(`${config.baseURL}tickets`, {
|
||||
@@ -251,6 +252,9 @@ class CreateTicket extends Component {
|
||||
<FormGroup>
|
||||
<Button>Open Ticket</Button>
|
||||
</FormGroup>
|
||||
<Link to="/">
|
||||
Back to home
|
||||
</Link>
|
||||
</Col>
|
||||
</Row>
|
||||
</Form>
|
||||
|
Reference in New Issue
Block a user