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