Fixed bug causing multiple requests for changesets

Fixed bug related to displaying errors

additionally: implemented i18n
This commit is contained in:
Philipp Czora
2018-09-27 16:29:33 +02:00
parent 77ed7581d4
commit 360bb807b9
12 changed files with 122 additions and 71 deletions

View File

@@ -0,0 +1,22 @@
// @flow
import ChangesetRow from "./ChangesetRow";
import React from "react";
import type { Changeset, Repository } from "../../../../../scm-ui-components/packages/ui-types/src/index";
import classNames from "classnames";
type Props = {
repository: Repository,
changesets: Changeset[]
};
class ChangesetList extends React.Component<Props> {
render() {
const { repository, changesets } = this.props;
const content = changesets.map((changeset, index) => {
return <ChangesetRow key={index} repository={repository} changeset={changeset} />;
});
return <div className={classNames("box")}>{content}</div>;
}
}
export default ChangesetList;