From 88c2fa63eb8c3ade93914f77d427219b3233ca02 Mon Sep 17 00:00:00 2001
From: Piotr Russ <mail@pruss.it>
Date: Sat, 28 Nov 2020 00:49:09 +0100
Subject: adding missing styles

---
 client/src/login/jsx/LoginPanel.jsx | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

(limited to 'client/src/login/jsx/LoginPanel.jsx')

diff --git a/client/src/login/jsx/LoginPanel.jsx b/client/src/login/jsx/LoginPanel.jsx
index c84e843..8a38f50 100644
--- a/client/src/login/jsx/LoginPanel.jsx
+++ b/client/src/login/jsx/LoginPanel.jsx
@@ -16,26 +16,26 @@ const LoginPanel = () => {
 
   const submit = (e) => {
     e.preventDefault();
-    login({email, password});
+    active && login({email, password});
   }
 
   return (
     <div className="login-panel">
+      <p className="login-panel__header">
+        {t('login-to-admin')}
+      </p>
       <form className="login-panel__form" onSubmit={submit}>
-        <p className="login-panel__header">
-          {t('login-to-admin')}
-        </p>
         <div className="text-input">
           <input
             onChange={e => setEmail(e.target.value)}
-            placeholder={t('user')}
-            id="admin-user-name"
-            name="admin-user-name"
+            placeholder={t('email')}
+            id="admin-email"
+            name="admin-email"
             type="text"
             className="text-input-field"
             value={email}
           />
-          <label htmlFor="admin-user-name" className="text-input-label">{t('user')}</label>
+          <label htmlFor="admin-user-name" className="text-input-label">{t('email')}</label>
         </div>
         <div className="text-input">
           <input
-- 
cgit v1.2.3

