correct input usage

This commit is contained in:
Maren Süwer
2018-10-25 14:37:26 +02:00
parent cab29ba509
commit 06d73f4ac8

View File

@@ -1,16 +1,16 @@
// @flow // @flow
import React from "react"; import React from "react";
import { translate } from "react-i18next"; import { translate } from "react-i18next";
import { apiClient } from "../../../../../scm-ui-components/packages/ui-components/src/index"; import { apiClient } from "@scm-manager/ui-components";
import { getSources } from "../modules/sources"; import { getSources } from "../modules/sources";
import type { import type {
Repository, Repository,
File File
} from "../../../../../scm-ui-components/packages/ui-types/src/index"; } from "@scm-manager/ui-types";
import { import {
ErrorNotification, ErrorNotification,
Loading Loading
} from "../../../../../scm-ui-components/packages/ui-components/src/index"; } from "@scm-manager/ui-components";
import { connect } from "react-redux"; import { connect } from "react-redux";
import ImageViewer from "../components/content/ImageViewer"; import ImageViewer from "../components/content/ImageViewer";
import SourcecodeViewer from "../components/content/SourcecodeViewer"; import SourcecodeViewer from "../components/content/SourcecodeViewer";
@@ -87,7 +87,7 @@ class Content extends React.Component<Props, State> {
return <SourcecodeViewer />; return <SourcecodeViewer />;
} }
return <DownloadViewer />; return <DownloadViewer file={file}/>;
} }
} }