mirror of
https://github.com/franjsco/tick3t
synced 2024-12-27 09:53:37 +01:00
refactor: Home component
This commit is contained in:
parent
2f70dfd487
commit
c5d3138344
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React from 'react';
|
||||
import {
|
||||
Row,
|
||||
Col
|
||||
@ -7,25 +7,17 @@ import {
|
||||
import CreateTicketCard from './CreateTicketCard';
|
||||
import SearchTicketCard from './SearchTicketCard';
|
||||
|
||||
|
||||
class Home extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Row>
|
||||
<Col sm={12} md={6}>
|
||||
<CreateTicketCard />
|
||||
</Col>
|
||||
<Col sm={12} md={6}>
|
||||
<SearchTicketCard />
|
||||
</Col>
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
const Home = (props) => {
|
||||
return (
|
||||
<Row>
|
||||
<Col sm={12} md={6}>
|
||||
<CreateTicketCard />
|
||||
</Col>
|
||||
<Col sm={12} md={6}>
|
||||
<SearchTicketCard />
|
||||
</Col>
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
|
||||
export default Home;
|
Loading…
Reference in New Issue
Block a user