diff options
author | 2018-06-27 21:37:29 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | 01f1135df1bbf44217124e78850cf1e12911e01e (patch) | |
tree | 629ddbfa799c695a9817ee8521d12db69d097526 /vnext/src/components/LoginButton.js | |
parent | 1662e167d29eec80a48037b3fac7ed5f1bcbe4f7 (diff) |
LoginButton refactoring and snapshots
Diffstat (limited to 'vnext/src/components/LoginButton.js')
-rw-r--r-- | vnext/src/components/LoginButton.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vnext/src/components/LoginButton.js b/vnext/src/components/LoginButton.js index e59dabdf..05f5df97 100644 --- a/vnext/src/components/LoginButton.js +++ b/vnext/src/components/LoginButton.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import Icon from './Icon'; import Modal from './Modal'; -import { me } from '../api'; +import { me, facebookLink, vkLink } from '../api'; export default class LoginButton extends React.Component { constructor(props) { @@ -51,13 +51,13 @@ export default class LoginButton extends React.Component { <div className="dialoglogin"> <p>Please, introduce yourself:</p> <div style={socialButtonsStyle}> - <a href={`https://api.juick.com/_fblogin?state=${window.location.protocol}//${window.location.host}${window.location.pathname}`} style={facebookButtonStyle}> - <Icon name="ei-sc-facebook" size="s" noFill={true} />Log in - </a> - <a href={`https://api.juick.com/_vklogin?state=${window.location.protocol}//${window.location.host}${window.location.pathname}`} style={vkButtonStyle}> - <Icon name="ei-sc-vk" size="s" noFill={true} /> - Log in - </a> + <a href={facebookLink()} style={facebookButtonStyle}> + <Icon name="ei-sc-facebook" size="s" noFill={true} />Log in + </a> + <a href={vkLink()} style={vkButtonStyle}> + <Icon name="ei-sc-vk" size="s" noFill={true} /> + Log in + </a> </div> <p>Already registered?</p> <form onSubmit={this.login}> |