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