aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/LoginButton.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-06 02:11:40 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commitea1b9039ae221355cfaabb16fc43dab5917bea56 (patch)
tree9e9c40a33cfcbd69062dae77a68964929f952368 /vnext/src/components/LoginButton.js
parent91faf0911184bb430170d021195d008b977e0ac4 (diff)
Fix eslint warnings
Diffstat (limited to 'vnext/src/components/LoginButton.js')
-rw-r--r--vnext/src/components/LoginButton.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/vnext/src/components/LoginButton.js b/vnext/src/components/LoginButton.js
index 05f5df97..e6c079f6 100644
--- a/vnext/src/components/LoginButton.js
+++ b/vnext/src/components/LoginButton.js
@@ -15,7 +15,9 @@ export default class LoginButton extends React.Component {
};
}
toggleModal = (event) => {
- if (event) event.preventDefault()
+ if (event) {
+ event.preventDefault();
+ }
this.setState({
isOpen: !this.state.isOpen
});
@@ -23,12 +25,12 @@ export default class LoginButton extends React.Component {
usernameChanged = (event) => {
this.setState({
username: event.target.value
- })
+ });
}
passwordChanged = (event) => {
this.setState({
password: event.target.value
- })
+ });
}
login = (event) => {
event.preventDefault();
@@ -88,16 +90,16 @@ const socialButtonsStyle = {
display: 'flex',
justifyContent: 'space-evenly',
padding: '4px'
-}
+};
const facebookButtonStyle = {
color: '#fff',
padding: '2px 14px',
background: '#3b5998'
-}
+};
const vkButtonStyle = {
color: '#fff',
padding: '2px 14px',
background: '#4c75a3'
-}
+};