Kickboard.jsx
1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React, {useState, useEffect} from "react";
import {Grid, Row, Col} from "react-bootstrap";
import GoogleMapCard from '../components/Kickboard/GoogleMapCard';
import KickboardStatusCard from '../components/Kickboard/KickboardStatusCard';
import KickboardHistoryTable from '../components/Kickboard/KickboardHistoryTable';
import SearchButton from '../components/Kickboard/SearchButton';
const Kickboard = () => {
const [kbId, setKbId] = useState('000165');
// 여기 API 요청
return (
<div className="content">
<Grid fluid>
<Row>
<Col md={4} mdOffset={8} sm={3} smOffset={9} style={{marginBottom:15}}>
<SearchButton/>
</Col>
</Row>
<Row>
<Col md={6}>
<GoogleMapCard/>
</Col>
<Col md={6}>
<KickboardStatusCard kbId={kbId}/>
</Col>
</Row>
<Row>
<Col md={12}>
<KickboardHistoryTable kbId={kbId}/>
</Col>
</Row>
</Grid>
</div>
);
};
export default Kickboard;