center download button

This commit is contained in:
Maren Süwer
2018-10-29 09:59:04 +01:00
parent 463a93553d
commit 866409c8df
2 changed files with 18 additions and 10 deletions

View File

@@ -7,14 +7,15 @@ import { DownloadButton } from "@scm-manager/ui-components";
type Props = {
t: string => string,
file: File,
revision: string
revision: string,
classes: any
};
class DownloadViewer extends React.Component<Props> {
render() {
const { t, file } = this.props;
return (
<div>
<div className="has-text-centered">
<DownloadButton
url={file._links.self.href}
displayName={t("sources.content.downloadButton")}