aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/LoginButton.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-07 23:30:05 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commitc869329d6e961a9758a4671b9a2f1872e909b1e4 (patch)
tree794c5fe4716bd16a9c686d0c11ad417010bf9839 /vnext/src/components/LoginButton.js
parent84c84cb7cb7a95122ef59cfb2699c927c1ba95b8 (diff)
Fix tests and update snapshots
Diffstat (limited to 'vnext/src/components/LoginButton.js')
-rw-r--r--vnext/src/components/LoginButton.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/vnext/src/components/LoginButton.js b/vnext/src/components/LoginButton.js
index 92be22b8..cd26252e 100644
--- a/vnext/src/components/LoginButton.js
+++ b/vnext/src/components/LoginButton.js
@@ -9,7 +9,6 @@ import { useFormState } from 'react-use-form-state';
import { me, facebookLink, vkLink } from '../api';
function LoginButton({ onAuth, title }) {
-
const [open, setOpen] = useState(false);
const [formState, { text, password }] = useFormState();
@@ -18,7 +17,7 @@ function LoginButton({ onAuth, title }) {
event.preventDefault();
}
setOpen(!open);
- }
+ };
let onSubmit = (event) => {
event.preventDefault();
me(formState.values.username, formState.values.password)
@@ -29,7 +28,7 @@ function LoginButton({ onAuth, title }) {
).catch(ex => {
console.log(ex);
});
- }
+ };
return (
<>
<a onClick={onToggle}>
@@ -88,4 +87,4 @@ const vkButtonStyle = {
background: '#4c75a3'
};
-export default LoginButton; \ No newline at end of file
+export default LoginButton;