2018-04-18 20:38:02 +00:00
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import React from 'react';
|
|
|
|
|
2020-04-29 22:34:37 +00:00
|
|
|
import GoogleIcon from '../../../images/google.svg';
|
2018-04-18 20:38:02 +00:00
|
|
|
|
|
|
|
function GoogleButton(props) {
|
|
|
|
return (
|
|
|
|
<a
|
|
|
|
className="google-button"
|
|
|
|
href="/auth/google/"
|
|
|
|
>
|
2020-05-05 23:08:45 +00:00
|
|
|
<GoogleIcon className="google-icon" role="img" aria-label="Google Logo" focusable="false" />
|
2018-04-18 20:38:02 +00:00
|
|
|
<span>{props.buttonText}</span>
|
|
|
|
</a>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
GoogleButton.propTypes = {
|
|
|
|
buttonText: PropTypes.string.isRequired
|
|
|
|
};
|
|
|
|
|
|
|
|
export default GoogleButton;
|