2018-09-17 14:03:13 +02:00
|
|
|
// @flow
|
|
|
|
|
import ChangesetRow from "./ChangesetRow";
|
|
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
changesets: Changeset[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class ChangesetTable extends React.Component<Props> {
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
const {changesets} = this.props;
|
2018-09-18 15:07:30 +02:00
|
|
|
return <div>
|
|
|
|
|
<table className="table is-hoverable is-fullwidth is-striped is-bordered">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Changesets</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{changesets.map((changeset, index) => {
|
|
|
|
|
return <ChangesetRow key={index} changeset={changeset}/>;
|
|
|
|
|
})}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2018-09-17 14:03:13 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default ChangesetTable;
|