changed panel usage + added pannel-footer

This commit is contained in:
Florian Scholdei
2019-01-29 17:12:18 +01:00
parent d70c2bd624
commit 258e11025a
6 changed files with 58 additions and 18 deletions

View File

@@ -1,17 +1,26 @@
// @flow
import ChangesetRow from "./ChangesetRow";
import React from "react";
import injectSheet from "react-jss";
import classNames from "classnames";
import type { Changeset, Repository } from "@scm-manager/ui-types";
type Props = {
repository: Repository,
changesets: Changeset[]
changesets: Changeset[],
classes: any
};
const styles = {
toCenterContent: {
display: "block"
}
};
class ChangesetList extends React.Component<Props> {
render() {
const { repository, changesets } = this.props;
const { repository, changesets, classes } = this.props;
const content = changesets.map(changeset => {
return (
<ChangesetRow
@@ -21,8 +30,12 @@ class ChangesetList extends React.Component<Props> {
/>
);
});
return <div className="box">{content}</div>;
return (
<div className={classNames("panel-block", classes.toCenterContent)}>
{content}
</div>
);
}
}
export default ChangesetList;
export default injectSheet(styles)(ChangesetList);