diff options
Diffstat (limited to 'vnext/src/components/LoginButton.js')
-rw-r--r-- | vnext/src/components/LoginButton.js | 14 |
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' -} +}; |