Component.tsx
1.07 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
40
41
42
43
44
45
46
import * as React from "react";
import { Link } from "react-router-dom";
import styled from "styled-components";
import TextField from "material-ui/TextField";
import RaisedButton from "material-ui/RaisedButton";
require("./styles.scss");
const style = {
// width: "100%"
};
interface Props {
org: any;
}
class SearchPage extends React.Component<Props> {
public render() {
const { props, state } = this;
const { org } = props;
return (
<div className="judge-page">
<h2>신청서</h2>
<ul>
{org.contracts
.filter(contract => contract.status === "ok")
.map(contract => (
<li key={contract.id}>
<h3>사유</h3>
<p>{contract.reason}</p>
<h3>주소</h3>
<p>{contract.address}</p>
<h3>드론</h3>
<p>
{contract.drone.name}({contract.drone.model.name})
</p>
<br />
</li>
))}
</ul>
</div>
);
}
}
export default SearchPage;