diff --git a/frontend/src/UIComponents/customInput/CustomInput.tsx b/frontend/src/UIComponents/customInput/CustomInput.tsx index f12fee8..a9ee579 100644 --- a/frontend/src/UIComponents/customInput/CustomInput.tsx +++ b/frontend/src/UIComponents/customInput/CustomInput.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import authStore from "../../store/authStore.ts"; import "./customInput.scss" interface IPropTypes { @@ -18,8 +17,6 @@ const CustomInput: React.FC = ({placeholder, value, handleOnChange, value={value} onChange={(e) => { handleOnChange(e.target.value) - authStore.changeUserLogin(e.target.value) - authStore.changeUserEmail(e.target.value) }} autoFocus={autoFocus !== undefined ? autoFocus : false} /> diff --git a/frontend/src/UIComponents/customInput/customInput.css b/frontend/src/UIComponents/customInput/customInput.css new file mode 100644 index 0000000..4469d9a --- /dev/null +++ b/frontend/src/UIComponents/customInput/customInput.css @@ -0,0 +1,20 @@ +.custom-input { + margin-top: 15px; + background: #C5FFED; + border-radius: 30px; +} +.custom-input > input { + font-size: 16px; + color: #2B2A29; + left: 10%; + width: 80%; + height: 70px; + background: none; + border: none; +} +.custom-input > input:focus { + border: none; + outline: none; +} + +/*# sourceMappingURL=customInput.css.map */ diff --git a/frontend/src/UIComponents/customInput/customInput.css.map b/frontend/src/UIComponents/customInput/customInput.css.map new file mode 100644 index 0000000..9fa624b --- /dev/null +++ b/frontend/src/UIComponents/customInput/customInput.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["customInput.scss","../../styles/variablesStyles.scss"],"names":[],"mappings":"AACA;EACE;EACA;EACA;;AAEA;EACE;EACA,OCJa;EDKb;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA","file":"customInput.css"} \ No newline at end of file diff --git a/frontend/src/components/authentication/Authentication.tsx b/frontend/src/components/authentication/Authentication.tsx index 59588c3..9b3633d 100644 --- a/frontend/src/components/authentication/Authentication.tsx +++ b/frontend/src/components/authentication/Authentication.tsx @@ -22,15 +22,15 @@ const Authentication: React.FC = observer(() => {

ВХОД

- { - authStore.changeUserLogin(e.target.value) - authStore.changeUserEmail(e.target.value) - }} autoFocus={true} placeholder="Логин"/> + { + authStore.changeUserLogin(e) + authStore.changeUserEmail(e) + }} + autoFocus={true} placeholder="Логин"/>
- authStore.changeUserPassword(e.target.value)} - placeholder="Пароль"/> + authStore.changeUserPassword(e)}/>