p5.js-web-editor/client/modules/User/components/GoogleButton.jsx
Madhurjya Pegu 307091ad3c Solving #553 Addition of google oauth 2.0 for easy login (#608)
* google oauth added

* google credentials 

updated .env description for google oauth

* changes done wrt review
2018-04-18 13:38:02 -07:00

24 lines
549 B
JavaScript

import InlineSVG from 'react-inlinesvg';
import PropTypes from 'prop-types';
import React from 'react';
// const googleUrl = require('../../../images/google.svg');
import googleUrl from '../../../images/google.svg';
function GoogleButton(props) {
return (
<a
className="google-button"
href="/auth/google/"
>
<InlineSVG src={googleUrl} className="google-icon" />
<span>{props.buttonText}</span>
</a>
);
}
GoogleButton.propTypes = {
buttonText: PropTypes.string.isRequired
};
export default GoogleButton;