mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
rename local const
This commit is contained in:
@@ -115,7 +115,7 @@ class GroupForm extends React.Component<Props, State> {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const iconType = group && group.external ? (
|
const label = group && group.external ? (
|
||||||
<>{t("group.external")} <Icon title={t("group.external")} name="sign-out-alt fa-rotate-270" /></>
|
<>{t("group.external")} <Icon title={t("group.external")} name="sign-out-alt fa-rotate-270" /></>
|
||||||
) : (
|
) : (
|
||||||
<>{t("group.internal")} <Icon title={t("group.internal")} name="sign-in-alt fa-rotate-90" /></>
|
<>{t("group.internal")} <Icon title={t("group.internal")} name="sign-in-alt fa-rotate-90" /></>
|
||||||
@@ -123,7 +123,7 @@ class GroupForm extends React.Component<Props, State> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Checkbox
|
<Checkbox
|
||||||
label={iconType}
|
label={label}
|
||||||
checked={group.external}
|
checked={group.external}
|
||||||
helpText={t("groupForm.help.externalHelpText")}
|
helpText={t("groupForm.help.externalHelpText")}
|
||||||
onChange={this.handleExternalChange}
|
onChange={this.handleExternalChange}
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ class UserForm extends React.Component<Props, State> {
|
|||||||
subtitle = <Subtitle subtitle={t("userForm.subtitle")} />;
|
subtitle = <Subtitle subtitle={t("userForm.subtitle")} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
const iconType =
|
const label =
|
||||||
user && user.active ? (
|
user && user.active ? (
|
||||||
<>
|
<>
|
||||||
{t("user.active")} <Icon title={t("user.active")} name="user" />
|
{t("user.active")} <Icon title={t("user.active")} name="user" />
|
||||||
@@ -183,7 +183,7 @@ class UserForm extends React.Component<Props, State> {
|
|||||||
<div className="column">
|
<div className="column">
|
||||||
{passwordChangeField}
|
{passwordChangeField}
|
||||||
<Checkbox
|
<Checkbox
|
||||||
label={iconType}
|
label={label}
|
||||||
onChange={this.handleActiveChange}
|
onChange={this.handleActiveChange}
|
||||||
checked={user ? user.active : false}
|
checked={user ? user.active : false}
|
||||||
helpText={t("help.activeHelpText")}
|
helpText={t("help.activeHelpText")}
|
||||||
|
|||||||
Reference in New Issue
Block a user