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

21 lines
488 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} />;
});
2018-09-18 16:51:31 +02:00
return <div>{content}</div>;
2018-09-17 14:03:13 +02:00
}
}
export default ChangesetTable;