Move Button to right side (and remove doubled note)

This commit is contained in:
Florian Scholdei
2019-11-20 16:14:50 +01:00
parent d962265d8d
commit a04e05bf9b
27 changed files with 69 additions and 104 deletions

View File

@@ -1,7 +1,7 @@
import React, { MouseEvent } from "react"; import React, { MouseEvent } from "react";
import { AddButton } from "../buttons";
import InputField from "./InputField"; import InputField from "./InputField";
import Level from "../layout/Level";
import { AddButton } from "../buttons";
type Props = { type Props = {
addEntry: (p: string) => void; addEntry: (p: string) => void;
@@ -48,10 +48,14 @@ class AddEntryToTableField extends React.Component<Props, State> {
disabled={disabled} disabled={disabled}
helpText={helpText} helpText={helpText}
/> />
<AddButton <Level
label={buttonLabel} right={
action={this.addButtonClicked} <AddButton
disabled={disabled || this.state.entryToAdd === "" || !this.isValid()} label={buttonLabel}
action={this.addButtonClicked}
disabled={disabled || this.state.entryToAdd === "" || !this.isValid()}
/>
}
/> />
</> </>
); );

View File

@@ -1,7 +1,7 @@
import React, { MouseEvent } from "react"; import React, { MouseEvent } from "react";
import { SelectValue } from "@scm-manager/ui-types";
import { AutocompleteObject, SelectValue } from "@scm-manager/ui-types";
import Autocomplete from "../Autocomplete"; import Autocomplete from "../Autocomplete";
import Level from "../layout/Level";
import AddButton from "../buttons/AddButton"; import AddButton from "../buttons/AddButton";
type Props = { type Props = {
@@ -53,8 +53,7 @@ class AutocompleteAddEntryToTableField extends React.Component<Props, State> {
noOptionsMessage={noOptionsMessage} noOptionsMessage={noOptionsMessage}
creatable={true} creatable={true}
/> />
<Level right={<AddButton label={buttonLabel} action={this.addButtonClicked} disabled={disabled} />} />
<AddButton label={buttonLabel} action={this.addButtonClicked} disabled={disabled} />
</div> </div>
); );
} }

View File

@@ -6,7 +6,7 @@
"settingsNavLink": "Einstellungen", "settingsNavLink": "Einstellungen",
"generalNavLink": "Generell" "generalNavLink": "Generell"
}, },
"info": { "info": {
"currentAppVersion": "Aktuelle Software-Versionsnummer", "currentAppVersion": "Aktuelle Software-Versionsnummer",
"communityTitle": "Community Support", "communityTitle": "Community Support",
"communityIconAlt": "Community Support Icon", "communityIconAlt": "Community Support Icon",
@@ -91,8 +91,7 @@
"submit": "Speichern" "submit": "Speichern"
}, },
"delete": { "delete": {
"button": "Löschen", "button": "Berechtigungsrolle löschen",
"subtitle": "Berechtigungsrolle löschen",
"confirmAlert": { "confirmAlert": {
"title": "Berechtigungsrolle löschen?", "title": "Berechtigungsrolle löschen?",
"message": "Wollen Sie diese Rolle wirklich löschen? Alle Benutzer mit dieser Rolle verlieren die entsprechenden Berechtigungen.", "message": "Wollen Sie diese Rolle wirklich löschen? Alle Benutzer mit dieser Rolle verlieren die entsprechenden Berechtigungen.",

View File

@@ -60,8 +60,7 @@
} }
}, },
"deleteGroup": { "deleteGroup": {
"subtitle": "Gruppe löschen", "button": "Gruppe löschen",
"button": "Löschen",
"confirmAlert": { "confirmAlert": {
"title": "Gruppe löschen", "title": "Gruppe löschen",
"message": "Soll die Gruppe wirklich gelöscht werden?", "message": "Soll die Gruppe wirklich gelöscht werden?",

View File

@@ -114,7 +114,7 @@
"size": "Größe" "size": "Größe"
}, },
"noSources": "Keine Sources in diesem Branch gefunden.", "noSources": "Keine Sources in diesem Branch gefunden.",
"extension" : { "extension": {
"notBound": "Keine Erweiterung angebunden." "notBound": "Keine Erweiterung angebunden."
} }
}, },
@@ -166,8 +166,7 @@
} }
}, },
"deleteRepo": { "deleteRepo": {
"subtitle": "Repository löschen", "button": "Repository löschen",
"button": "Löschen",
"confirmAlert": { "confirmAlert": {
"title": "Repository löschen", "title": "Repository löschen",
"message": "Soll das Repository wirklich gelöscht werden?", "message": "Soll das Repository wirklich gelöscht werden?",

View File

@@ -45,8 +45,7 @@
"subtitle": "Erstellen eines neuen Benutzers" "subtitle": "Erstellen eines neuen Benutzers"
}, },
"deleteUser": { "deleteUser": {
"subtitle": "Benutzer löschen", "button": "Benutzer löschen",
"button": "Löschen",
"confirmAlert": { "confirmAlert": {
"title": "Benutzer löschen", "title": "Benutzer löschen",
"message": "Soll der Benutzer wirklich gelöscht werden?", "message": "Soll der Benutzer wirklich gelöscht werden?",

View File

@@ -11,7 +11,7 @@
"communityTitle": "Community Support", "communityTitle": "Community Support",
"communityIconAlt": "Community Support Icon", "communityIconAlt": "Community Support Icon",
"communityInfo": "Contact the SCM-Manager support team for questions about SCM-Manager, to report bugs or to request features through the official channels.", "communityInfo": "Contact the SCM-Manager support team for questions about SCM-Manager, to report bugs or to request features through the official channels.",
"communityButton": "Contact our team", "communityButton": "Contact our Team",
"enterpriseTitle": "Enterprise Support", "enterpriseTitle": "Enterprise Support",
"enterpriseIconAlt": "Enterprise Support Icon", "enterpriseIconAlt": "Enterprise Support Icon",
"enterpriseInfo": "You require support with the integration of SCM-Manager into your processes, with the customization of the tool or simply a service level agreement (SLA)?", "enterpriseInfo": "You require support with the integration of SCM-Manager into your processes, with the customization of the tool or simply a service level agreement (SLA)?",
@@ -76,8 +76,8 @@
"createSubtitle": "Create Permission Role", "createSubtitle": "Create Permission Role",
"editSubtitle": "Edit Permission Role", "editSubtitle": "Edit Permission Role",
"overview": { "overview": {
"title": "Overview of all permission roles", "title": "Overview of all Permission Roles",
"noPermissionRoles": "No permission roles found.", "noPermissionRoles": "No Permission Roles found.",
"createButton": "Create Permission Role" "createButton": "Create Permission Role"
}, },
"editButton": "Edit", "editButton": "Edit",
@@ -91,10 +91,9 @@
"submit": "Save" "submit": "Save"
}, },
"delete": { "delete": {
"button": "Delete", "button": "Delete Permission Role",
"subtitle": "Delete permission role",
"confirmAlert": { "confirmAlert": {
"title": "Delete permission role", "title": "Delete Permission Role",
"message": "Do you really want to delete this permission role? All users will lose their corresponding permissions.", "message": "Do you really want to delete this permission role? All users will lose their corresponding permissions.",
"submit": "Yes", "submit": "Yes",
"cancel": "No" "cancel": "No"

View File

@@ -60,8 +60,7 @@
} }
}, },
"deleteGroup": { "deleteGroup": {
"subtitle": "Delete Group", "button": "Delete Group",
"button": "Delete",
"confirmAlert": { "confirmAlert": {
"title": "Delete Group", "title": "Delete Group",
"message": "Do you really want to delete the group?", "message": "Do you really want to delete the group?",

View File

@@ -114,7 +114,7 @@
"size": "Size" "size": "Size"
}, },
"noSources": "No sources found for this branch.", "noSources": "No sources found for this branch.",
"extension" : { "extension": {
"notBound": "No extension bound." "notBound": "No extension bound."
} }
}, },
@@ -166,8 +166,7 @@
} }
}, },
"deleteRepo": { "deleteRepo": {
"subtitle": "Delete Repository", "button": "Delete Repository",
"button": "Delete",
"confirmAlert": { "confirmAlert": {
"title": "Delete repository", "title": "Delete repository",
"message": "Do you really want to delete the repository?", "message": "Do you really want to delete the repository?",
@@ -178,7 +177,7 @@
"diff": { "diff": {
"changes": { "changes": {
"add": "added", "add": "added",
"delete": "deleted", "delete": "deleted",
"modify": "modified", "modify": "modified",
"rename": "renamed", "rename": "renamed",
"copy": "copied" "copy": "copied"

View File

@@ -45,17 +45,16 @@
"subtitle": "Create a new user" "subtitle": "Create a new user"
}, },
"deleteUser": { "deleteUser": {
"subtitle": "Delete User", "button": "Delete User",
"button": "Delete",
"confirmAlert": { "confirmAlert": {
"title": "Delete user", "title": "Delete User",
"message": "Do you really want to delete the user?", "message": "Do you really want to delete the user?",
"submit": "Yes", "submit": "Yes",
"cancel": "No" "cancel": "No"
} }
}, },
"singleUserPassword": { "singleUserPassword": {
"button": "Set password", "button": "Set Password",
"setPasswordSuccessful": "Password successfully set" "setPasswordSuccessful": "Password successfully set"
}, },
"userForm": { "userForm": {

View File

@@ -86,8 +86,7 @@
"submit": "Guardar" "submit": "Guardar"
}, },
"delete": { "delete": {
"button": "Borrar", "button": "Eliminar el rol",
"subtitle": "Eliminar el rol",
"confirmAlert": { "confirmAlert": {
"title": "Eliminar el rol", "title": "Eliminar el rol",
"message": "¿Realmente desea borrar el rol? Todos los usuarios de este rol perderń sus permisos.", "message": "¿Realmente desea borrar el rol? Todos los usuarios de este rol perderń sus permisos.",

View File

@@ -60,8 +60,7 @@
} }
}, },
"deleteGroup": { "deleteGroup": {
"subtitle": "Borrar grupo", "button": "Borrar grupo",
"button": "Borrar",
"confirmAlert": { "confirmAlert": {
"title": "Borrar grupo", "title": "Borrar grupo",
"message": "¿Realmente desea borrar el grupo?", "message": "¿Realmente desea borrar el grupo?",

View File

@@ -114,7 +114,7 @@
"size": "tamaño" "size": "tamaño"
}, },
"noSources": "No se han encontrado fuentes para esta rama.", "noSources": "No se han encontrado fuentes para esta rama.",
"extension" : { "extension": {
"notBound": "Sin extensión conectada." "notBound": "Sin extensión conectada."
} }
}, },
@@ -166,8 +166,7 @@
} }
}, },
"deleteRepo": { "deleteRepo": {
"subtitle": "Borrar repositorio", "button": "Borrar repositorio",
"button": "Borrar",
"confirmAlert": { "confirmAlert": {
"title": "Borrar repositorio", "title": "Borrar repositorio",
"message": "¿Realmente desea borrar el repositorio?", "message": "¿Realmente desea borrar el repositorio?",
@@ -178,7 +177,7 @@
"diff": { "diff": {
"changes": { "changes": {
"add": "añadido", "add": "añadido",
"delete": "borrado", "delete": "borrado",
"modify": "modificado", "modify": "modificado",
"rename": "renombrado", "rename": "renombrado",
"copy": "copiado" "copy": "copiado"

View File

@@ -45,8 +45,7 @@
"subtitle": "Crear un nuevo usuario" "subtitle": "Crear un nuevo usuario"
}, },
"deleteUser": { "deleteUser": {
"subtitle": "Borrar usuario", "button": "Borrar usuario",
"button": "Borrar",
"confirmAlert": { "confirmAlert": {
"title": "Borrar usuario", "title": "Borrar usuario",
"message": "¿Realmente desea borrar el usuario?", "message": "¿Realmente desea borrar el usuario?",

View File

@@ -4,7 +4,7 @@ import { withRouter } from "react-router-dom";
import { WithTranslation, withTranslation } from "react-i18next"; import { WithTranslation, withTranslation } from "react-i18next";
import { History } from "history"; import { History } from "history";
import { RepositoryRole } from "@scm-manager/ui-types"; import { RepositoryRole } from "@scm-manager/ui-types";
import { Subtitle, DeleteButton, confirmAlert, ErrorNotification } from "@scm-manager/ui-components"; import { Level, DeleteButton, confirmAlert, ErrorNotification } from "@scm-manager/ui-components";
import { deleteRole, getDeleteRoleFailure, isDeleteRolePending } from "../modules/roles"; import { deleteRole, getDeleteRoleFailure, isDeleteRolePending } from "../modules/roles";
type Props = WithTranslation & { type Props = WithTranslation & {
@@ -64,13 +64,9 @@ class DeleteRepositoryRole extends React.Component<Props> {
return ( return (
<> <>
<Subtitle subtitle={t("repositoryRole.delete.subtitle")} /> <hr />
<div className="columns"> <ErrorNotification error={error} />
<div className="column"> <Level right={<DeleteButton label={t("repositoryRole.delete.button")} action={action} loading={loading} />} />
<ErrorNotification error={error} />
<DeleteButton label={t("repositoryRole.delete.button")} action={action} loading={loading} />
</div>
</div>
</> </>
); );
} }

View File

@@ -44,7 +44,6 @@ class EditRepositoryRole extends React.Component<Props> {
<> <>
<Subtitle subtitle={t("repositoryRole.editSubtitle")} /> <Subtitle subtitle={t("repositoryRole.editSubtitle")} />
<RepositoryRoleForm role={this.props.role} submitForm={role => this.updateRepositoryRole(role)} /> <RepositoryRoleForm role={this.props.role} submitForm={role => this.updateRepositoryRole(role)} />
<hr />
<DeleteRepositoryRole role={this.props.role} /> <DeleteRepositoryRole role={this.props.role} />
</> </>
); );

View File

@@ -4,6 +4,7 @@ import {
InputField, InputField,
Notification, Notification,
PasswordConfirmation, PasswordConfirmation,
Level,
SubmitButton SubmitButton
} from "@scm-manager/ui-components"; } from "@scm-manager/ui-components";
import { WithTranslation, withTranslation } from "react-i18next"; import { WithTranslation, withTranslation } from "react-i18next";
@@ -124,11 +125,7 @@ class ChangeUserPassword extends React.Component<Props, State> {
passwordChanged={this.passwordChanged} passwordChanged={this.passwordChanged}
key={this.state.passwordChanged ? "changed" : "unchanged"} key={this.state.passwordChanged ? "changed" : "unchanged"}
/> />
<div className="columns"> <Level right={<SubmitButton disabled={!this.isValid()} loading={loading} label={t("password.submit")} />} />
<div className="column">
<SubmitButton disabled={!this.isValid()} loading={loading} label={t("password.submit")} />
</div>
</div>
</form> </form>
); );
} }

View File

@@ -8,9 +8,9 @@ import {
InputField, InputField,
SubmitButton, SubmitButton,
Textarea, Textarea,
Level,
Checkbox Checkbox
} from "@scm-manager/ui-components"; } from "@scm-manager/ui-components";
import * as validator from "./groupValidation"; import * as validator from "./groupValidation";
type Props = WithTranslation & { type Props = WithTranslation & {
@@ -154,7 +154,7 @@ class GroupForm extends React.Component<Props, State> {
/> />
{this.renderExternalField(group)} {this.renderExternalField(group)}
{this.renderMemberfields(group)} {this.renderMemberfields(group)}
<SubmitButton disabled={!this.isValid()} label={t("groupForm.submit")} loading={loading} /> <Level right={<SubmitButton disabled={!this.isValid()} label={t("groupForm.submit")} loading={loading} />} />
</form> </form>
</> </>
); );

View File

@@ -4,7 +4,7 @@ import { withRouter } from "react-router-dom";
import { WithTranslation, withTranslation } from "react-i18next"; import { WithTranslation, withTranslation } from "react-i18next";
import { History } from "history"; import { History } from "history";
import { Group } from "@scm-manager/ui-types"; import { Group } from "@scm-manager/ui-types";
import { Subtitle, DeleteButton, confirmAlert, ErrorNotification } from "@scm-manager/ui-components"; import { Level, DeleteButton, confirmAlert, ErrorNotification } from "@scm-manager/ui-components";
import { deleteGroup, getDeleteGroupFailure, isDeleteGroupPending } from "../modules/groups"; import { deleteGroup, getDeleteGroupFailure, isDeleteGroupPending } from "../modules/groups";
type Props = WithTranslation & { type Props = WithTranslation & {
@@ -64,13 +64,9 @@ export class DeleteGroup extends React.Component<Props> {
return ( return (
<> <>
<Subtitle subtitle={t("deleteGroup.subtitle")} /> <hr />
<ErrorNotification error={error} /> <ErrorNotification error={error} />
<div className="columns"> <Level right={<DeleteButton label={t("deleteGroup.button")} action={action} loading={loading} />} />
<div className="column">
<DeleteButton label={t("deleteGroup.button")} action={action} loading={loading} />
</div>
</div>
</> </>
); );
} }

View File

@@ -61,7 +61,6 @@ class EditGroup extends React.Component<Props> {
loading={loading} loading={loading}
loadUserSuggestions={this.loadUserAutocompletion} loadUserSuggestions={this.loadUserAutocompletion}
/> />
<hr />
<DeleteGroup group={group} /> <DeleteGroup group={group} />
</div> </div>
); );

View File

@@ -2,7 +2,7 @@ import React from "react";
import { WithTranslation, withTranslation } from "react-i18next"; import { WithTranslation, withTranslation } from "react-i18next";
import { ExtensionPoint } from "@scm-manager/ui-extensions"; import { ExtensionPoint } from "@scm-manager/ui-extensions";
import { Repository, RepositoryType } from "@scm-manager/ui-types"; import { Repository, RepositoryType } from "@scm-manager/ui-types";
import { Subtitle, InputField, Select, SubmitButton, Textarea } from "@scm-manager/ui-components"; import { Subtitle, InputField, Select, Textarea, Level, SubmitButton } from "@scm-manager/ui-components";
import * as validator from "./repositoryValidation"; import * as validator from "./repositoryValidation";
type Props = WithTranslation & { type Props = WithTranslation & {
@@ -54,7 +54,6 @@ class RepositoryForm extends React.Component<Props, State> {
isFalsy(value) { isFalsy(value) {
return !value; return !value;
} }
isValid = () => { isValid = () => {
@@ -91,7 +90,7 @@ class RepositoryForm extends React.Component<Props, State> {
const disabled = !this.isModifiable() && !this.isCreateMode(); const disabled = !this.isModifiable() && !this.isCreateMode();
const submitButton = disabled ? null : ( const submitButton = disabled ? null : (
<SubmitButton disabled={!this.isValid()} loading={loading} label={t("repositoryForm.submit")} /> <Level right={<SubmitButton disabled={!this.isValid()} loading={loading} label={t("repositoryForm.submit")} />} />
); );
let subtitle = null; let subtitle = null;

View File

@@ -4,7 +4,7 @@ import { withRouter } from "react-router-dom";
import { WithTranslation, withTranslation } from "react-i18next"; import { WithTranslation, withTranslation } from "react-i18next";
import { History } from "history"; import { History } from "history";
import { Repository } from "@scm-manager/ui-types"; import { Repository } from "@scm-manager/ui-types";
import { Subtitle, DeleteButton, confirmAlert, ErrorNotification } from "@scm-manager/ui-components"; import { Level, DeleteButton, confirmAlert, ErrorNotification } from "@scm-manager/ui-components";
import { deleteRepo, getDeleteRepoFailure, isDeleteRepoPending } from "../modules/repos"; import { deleteRepo, getDeleteRepoFailure, isDeleteRepoPending } from "../modules/repos";
type Props = WithTranslation & { type Props = WithTranslation & {
@@ -65,13 +65,8 @@ class DeleteRepo extends React.Component<Props> {
return ( return (
<> <>
<hr /> <hr />
<Subtitle subtitle={t("deleteRepo.subtitle")} />
<ErrorNotification error={error} /> <ErrorNotification error={error} />
<div className="columns"> <Level right={<DeleteButton label={t("deleteRepo.button")} action={action} loading={loading} />} />
<div className="column">
<DeleteButton label={t("deleteRepo.button")} action={action} loading={loading} />
</div>
</div>
</> </>
); );
} }

View File

@@ -6,6 +6,7 @@ import {
GroupAutocomplete, GroupAutocomplete,
LabelWithHelpIcon, LabelWithHelpIcon,
Radio, Radio,
Level,
SubmitButton, SubmitButton,
Subtitle, Subtitle,
UserAutocomplete UserAutocomplete
@@ -141,8 +142,8 @@ class CreatePermissionForm extends React.Component<Props, State> {
</div> </div>
</div> </div>
<div className="columns"> <div className="columns">
<div className="column is-three-fifths">{this.renderAutocompletionField()}</div> <div className="column is-half">{this.renderAutocompletionField()}</div>
<div className="column is-two-fifths"> <div className="column is-half">
<div className="columns"> <div className="columns">
<div className="column is-narrow"> <div className="column is-narrow">
<RoleSelector <RoleSelector
@@ -163,15 +164,15 @@ class CreatePermissionForm extends React.Component<Props, State> {
</div> </div>
</div> </div>
</div> </div>
<div className="columns"> <Level
<div className="column"> right={
<SubmitButton <SubmitButton
label={t("permission.add-permission.submit-button")} label={t("permission.add-permission.submit-button")}
loading={loading} loading={loading}
disabled={!this.state.valid || this.state.name === ""} disabled={!this.state.valid || this.state.name === ""}
/> />
</div> }
</div> />
</form> </form>
</> </>
); );

View File

@@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { WithTranslation, withTranslation } from "react-i18next"; import { WithTranslation, withTranslation } from "react-i18next";
import { User } from "@scm-manager/ui-types"; import { User } from "@scm-manager/ui-types";
import { SubmitButton, Notification, ErrorNotification, PasswordConfirmation } from "@scm-manager/ui-components"; import { Level, SubmitButton, Notification, ErrorNotification, PasswordConfirmation } from "@scm-manager/ui-components";
import { setPassword } from "./setPassword"; import { setPassword } from "./setPassword";
type Props = WithTranslation & { type Props = WithTranslation & {
@@ -98,15 +98,15 @@ class SetUserPassword extends React.Component<Props, State> {
passwordChanged={this.passwordChanged} passwordChanged={this.passwordChanged}
key={this.state.passwordChanged ? "changed" : "unchanged"} key={this.state.passwordChanged ? "changed" : "unchanged"}
/> />
<div className="columns"> <Level
<div className="column"> right={
<SubmitButton <SubmitButton
disabled={!this.state.passwordValid} disabled={!this.state.passwordValid}
loading={loading} loading={loading}
label={t("singleUserPassword.button")} label={t("singleUserPassword.button")}
/> />
</div> }
</div> />
</form> </form>
); );
} }

View File

@@ -6,6 +6,7 @@ import {
Checkbox, Checkbox,
InputField, InputField,
PasswordConfirmation, PasswordConfirmation,
Level,
SubmitButton, SubmitButton,
validation as validator validation as validator
} from "@scm-manager/ui-components"; } from "@scm-manager/ui-components";
@@ -166,11 +167,7 @@ class UserForm extends React.Component<Props, State> {
/> />
</div> </div>
</div> </div>
<div className="columns"> <Level right={<SubmitButton disabled={!this.isValid()} loading={loading} label={t("userForm.button")} />} />
<div className="column">
<SubmitButton disabled={!this.isValid()} loading={loading} label={t("userForm.button")} />
</div>
</div>
</form> </form>
</> </>
); );

View File

@@ -4,7 +4,7 @@ import { withRouter } from "react-router-dom";
import { WithTranslation, withTranslation } from "react-i18next"; import { WithTranslation, withTranslation } from "react-i18next";
import { History } from "history"; import { History } from "history";
import { User } from "@scm-manager/ui-types"; import { User } from "@scm-manager/ui-types";
import { Subtitle, DeleteButton, confirmAlert, ErrorNotification } from "@scm-manager/ui-components"; import { Level, DeleteButton, confirmAlert, ErrorNotification } from "@scm-manager/ui-components";
import { deleteUser, getDeleteUserFailure, isDeleteUserPending } from "../modules/users"; import { deleteUser, getDeleteUserFailure, isDeleteUserPending } from "../modules/users";
type Props = WithTranslation & { type Props = WithTranslation & {
@@ -64,13 +64,9 @@ class DeleteUser extends React.Component<Props> {
return ( return (
<> <>
<Subtitle subtitle={t("deleteUser.subtitle")} /> <hr />
<ErrorNotification error={error} /> <ErrorNotification error={error} />
<div className="columns"> <Level right={<DeleteButton label={t("deleteUser.button")} action={action} loading={loading} />} />
<div className="column">
<DeleteButton label={t("deleteUser.button")} action={action} loading={loading} />
</div>
</div>
</> </>
); );
} }

View File

@@ -41,7 +41,6 @@ class EditUser extends React.Component<Props> {
<div> <div>
<ErrorNotification error={error} /> <ErrorNotification error={error} />
<UserForm submitForm={user => this.modifyUser(user)} user={user} loading={loading} /> <UserForm submitForm={user => this.modifyUser(user)} user={user} loading={loading} />
<hr />
<DeleteUser user={user} /> <DeleteUser user={user} />
</div> </div>
); );