mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
26 lines
533 B
JavaScript
26 lines
533 B
JavaScript
// @flow
|
|
import ChangesetRow from "./ChangesetRow";
|
|
import React from "react";
|
|
import type {Changeset} from "@scm-manager/ui-types";
|
|
|
|
type Props = {
|
|
changesets: Changeset[]
|
|
};
|
|
|
|
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>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default ChangesetTable;
|