show image

This commit is contained in:
Maren Süwer
2018-10-29 10:46:16 +01:00
parent 866409c8df
commit abad7d905c
3 changed files with 14 additions and 21 deletions

View File

@@ -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 {