mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 05:25:44 +01:00
show image
This commit is contained in:
@@ -104,7 +104,7 @@ class Content extends React.Component<Props, State> {
|
||||
const { file, revision } = this.props;
|
||||
const contentType = this.state.contentType;
|
||||
if (contentType.startsWith("image")) {
|
||||
return <ImageViewer />;
|
||||
return <ImageViewer file={file} />;
|
||||
} else if (contentType.startsWith("text")) {
|
||||
return <SourcecodeViewer />;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user