mirror of https://github.com/franjsco/tick3t
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 {
|
import {
|
||||||
Row,
|
Row,
|
||||||
Col
|
Col
|
||||||
|
@ -7,25 +7,17 @@ import {
|
||||||
import CreateTicketCard from './CreateTicketCard';
|
import CreateTicketCard from './CreateTicketCard';
|
||||||
import SearchTicketCard from './SearchTicketCard';
|
import SearchTicketCard from './SearchTicketCard';
|
||||||
|
|
||||||
|
const Home = (props) => {
|
||||||
class Home extends Component {
|
return (
|
||||||
constructor(props) {
|
<Row>
|
||||||
super(props);
|
<Col sm={12} md={6}>
|
||||||
this.state = {};
|
<CreateTicketCard />
|
||||||
}
|
</Col>
|
||||||
|
<Col sm={12} md={6}>
|
||||||
render() {
|
<SearchTicketCard />
|
||||||
return (
|
</Col>
|
||||||
<Row>
|
</Row>
|
||||||
<Col sm={12} md={6}>
|
);
|
||||||
<CreateTicketCard />
|
|
||||||
</Col>
|
|
||||||
<Col sm={12} md={6}>
|
|
||||||
<SearchTicketCard />
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Home;
|
export default Home;
|
Loading…
Reference in New Issue