35 lines
966 B
JavaScript
35 lines
966 B
JavaScript
import {Button, Modal, ModalBody, ModalFooter, ModalHeader, ModalTitle} from "react-bootstrap";
|
|
|
|
|
|
function StandardCodeListModal({show,content,onClose,title,size}){
|
|
return(
|
|
<Modal size={size} show={show} aria-labelledby="example-modal-sizes-title-lg">
|
|
<ModalHeader>
|
|
<ModalTitle id="example-modal-sizes-title-lg">{title}</ModalTitle>
|
|
</ModalHeader>
|
|
<ModalBody>
|
|
{content}
|
|
</ModalBody>
|
|
<ModalFooter><Button onClick={onClose}>닫기</Button></ModalFooter>
|
|
</Modal>)
|
|
}
|
|
|
|
function TestTable({content}){
|
|
|
|
|
|
return(
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>년도</td>
|
|
<td>기준코드</td>
|
|
<td>신구건설기준비교</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{content}
|
|
</tbody>
|
|
</table>
|
|
)
|
|
}
|
|
export {StandardCodeListModal,TestTable}; |