add breadcrumb to fileViewer

This commit is contained in:
Eduard Heimbuch
2020-01-09 09:34:40 +01:00
parent 0d546755a9
commit 4e23fd95ab
2 changed files with 4 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ type Props = WithTranslation & {
repository: Repository;
revision: string;
path: string;
breadcrumb: React.ReactNode;
};
type State = {
@@ -172,7 +173,7 @@ class Content extends React.Component<Props, State> {
}
render() {
const { file, revision, repository, path } = this.props;
const { file, revision, repository, path, breadcrumb } = this.props;
const { showHistory, errorFromExtension } = this.state;
const header = this.showHeader();
@@ -189,6 +190,7 @@ class Content extends React.Component<Props, State> {
<div className="panel">
<div className="panel-heading">{header}</div>
{moreInformation}
{breadcrumb}
{content}
</div>
{errorFromExtension && <ErrorNotification error={errorFromExtension} />}