Move Button to right side

This commit is contained in:
Florian Scholdei
2019-11-26 15:22:22 +01:00
parent d4afbd6a0a
commit 702cca59ed
2 changed files with 14 additions and 9 deletions

View File

@@ -1,8 +1,7 @@
import React from "react";
import React, { FormEvent } from "react";
import { WithTranslation, withTranslation } from "react-i18next";
import { Links, Link } from "@scm-manager/ui-types";
import { apiClient, SubmitButton, Loading, ErrorNotification } from "../";
import { FormEvent } from "react";
import { apiClient, Level, SubmitButton, Loading, ErrorNotification } from "../";
type RenderProps = {
readOnly: boolean;
@@ -179,7 +178,9 @@ class Configuration extends React.Component<Props, State> {
<form onSubmit={this.modifyConfiguration}>
{this.props.render(renderProps)}
<hr />
<SubmitButton label={t("config.form.submit")} disabled={!valid || readOnly} loading={modifying} />
<Level
right={<SubmitButton label={t("config.form.submit")} disabled={!valid || readOnly} loading={modifying} />}
/>
</form>
</>
);