mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 05:25:44 +01:00
add breadcrumb to fileViewer
This commit is contained in:
@@ -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} />}
|
||||
|
||||
Reference in New Issue
Block a user