p5.js-web-editor/client/modules/User/components/GoogleButton.jsx

23 lines
488 B
React
Raw Normal View History

import PropTypes from 'prop-types';
import React from 'react';
2020-04-30 00:34:37 +02:00
import GoogleIcon from '../../../images/google.svg';
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" />
<span>{props.buttonText}</span>
</a>
);
}
GoogleButton.propTypes = {
buttonText: PropTypes.string.isRequired
};
export default GoogleButton;