mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
Restructured Changeset Component
WIP
This commit is contained in:
28
scm-ui/src/changesets/components/ChangesetTable.js
Normal file
28
scm-ui/src/changesets/components/ChangesetTable.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// @flow
|
||||
import ChangesetRow from "./ChangesetRow";
|
||||
import React from "react";
|
||||
|
||||
type Props = {
|
||||
changesets: Changeset[]
|
||||
}
|
||||
|
||||
class ChangesetTable extends React.Component<Props> {
|
||||
|
||||
render() {
|
||||
const {changesets} = this.props;
|
||||
return <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>
|
||||
}
|
||||
}
|
||||
|
||||
export default ChangesetTable;
|
||||
Reference in New Issue
Block a user