| 1 | // @flow
|
| 2 | import React, { type Node } from "react"
|
| 3 | import Row, { type Props as RowProps } from "./Row"
|
| 4 |
|
| 5 | export type Props = {
|
| 6 | fileName: number,
|
| 7 | codes: Array<RowProps>
|
| 8 | }
|
| 9 |
|
| 10 | const style = {
|
| 11 | margin: "0px",
|
| 12 | padding: "0px",
|
| 13 | border: "none"
|
| 14 | }
|
| 15 |
|
| 16 | // TODO : foo
|
| 17 | export default ({ fileName, codes }: Props) => (
|
| 18 | <div>
|
| 19 | <h3>Leasot Report</h3>
|
| 20 | <h4>{fileName}</h4>
|
| 21 | <div style={{ width: "60rem", border: "1px solid #DEDEDF" }}>
|
| 22 | <table
|
| 23 | style={{
|
| 24 | textAlign: "left",
|
| 25 | width: "100%",
|
| 26 | border: "none",
|
| 27 | backgroundColor: "#FFF",
|
| 28 | borderCollapse: "collapse",
|
| 29 | borderSpacing: 0
|
| 30 | }}
|
| 31 | >
|
| 32 | <tbody>
|
| 33 | {codes.map(({ line, code, todo }) => (
|
| 34 | <Row key={line} line={line} code={code} todo={todo} />
|
| 35 | ))}
|
| 36 | </tbody>
|
| 37 | </table>
|
| 38 | </div>
|
| 39 | </div>
|
| 40 | )
|