mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
refactoring
This commit is contained in:
@@ -114,8 +114,6 @@ class Login extends React.Component<Props, State> {
|
|||||||
return this.renderRedirect();
|
return this.renderRedirect();
|
||||||
}
|
}
|
||||||
|
|
||||||
const error = this.areCredentialsInvalid();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="hero">
|
<section className="hero">
|
||||||
<div className="hero-body">
|
<div className="hero-body">
|
||||||
@@ -131,7 +129,7 @@ class Login extends React.Component<Props, State> {
|
|||||||
alt={t("login.logo-alt")}
|
alt={t("login.logo-alt")}
|
||||||
/>
|
/>
|
||||||
</figure>
|
</figure>
|
||||||
<ErrorNotification error={error} />
|
<ErrorNotification error={this.areCredentialsInvalid()} />
|
||||||
<form onSubmit={this.handleSubmit}>
|
<form onSubmit={this.handleSubmit}>
|
||||||
<InputField
|
<InputField
|
||||||
placeholder={t("login.username-placeholder")}
|
placeholder={t("login.username-placeholder")}
|
||||||
|
|||||||
Reference in New Issue
Block a user