Merged in feature/unify_table (pull request #175)

Feature/unify table
This commit is contained in:
Florian Scholdei
2019-02-06 14:11:24 +00:00
10 changed files with 119 additions and 72 deletions

View File

@@ -29,9 +29,6 @@ type State = {
};
const styles = {
toCenterContent: {
display: "block"
},
pointer: {
cursor: "pointer"
},
@@ -126,7 +123,6 @@ class Content extends React.Component<Props, State> {
<div
className={classNames(
"panel-block",
classes.toCenterContent,
classes.hasBackground
)}
>
@@ -161,7 +157,7 @@ class Content extends React.Component<Props, State> {
}
render() {
const { file, revision, repository, path, classes } = this.props;
const { file, revision, repository, path } = this.props;
const { showHistory } = this.state;
const header = this.showHeader();
@@ -180,13 +176,11 @@ class Content extends React.Component<Props, State> {
return (
<div>
<nav className="panel">
<article className="panel-heading">{header}</article>
<div className="panel">
<div className="panel-heading">{header}</div>
{moreInformation}
<div className={classNames("panel-block", classes.toCenterContent)}>
{content}
</div>
</nav>
{content}
</div>
</div>
);
}