From ea1b9039ae221355cfaabb16fc43dab5917bea56 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Jul 2018 02:11:40 +0300 Subject: Fix eslint warnings --- vnext/src/components/LoginButton.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'vnext/src/components/LoginButton.js') 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' -} +}; -- cgit v1.2.3