Files
SCM-Manager/scm-ui/src/changesets/components/ChangesetTable.js

26 lines
533 B
JavaScript
Raw Normal View History

2018-09-17 14:03:13 +02:00
// @flow
import ChangesetRow from "./ChangesetRow";
import React from "react";
import type {Changeset} from "@scm-manager/ui-types";
2018-09-17 14:03:13 +02:00
type Props = {
changesets: Changeset[]
};
2018-09-17 14:03:13 +02:00
class ChangesetTable extends React.Component<Props> {
render() {
const { changesets } = this.props;
const content = changesets.map((changeset, index) => {
return <ChangesetRow key={index} changeset={changeset} />;
});
return (
<div>
<hr />
{content}
</div>
);
2018-09-17 14:03:13 +02:00
}
}
export default ChangesetTable;