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

23 lines
487 B
React
Raw Normal View History

import PropTypes from 'prop-types';
import React from 'react';
2016-08-31 21:12:18 +02:00
2020-04-30 00:34:37 +02:00
import GithubIcon from '../../../images/github.svg';
2017-03-02 21:18:58 +01:00
2016-08-31 21:12:18 +02:00
function GithubButton(props) {
return (
<a
className="github-button"
href="/auth/github"
>
2020-05-06 01:08:45 +02:00
<GithubIcon className="github-icon" role="img" aria-label="GitHub Logo" focusable="false" />
2016-08-31 21:12:18 +02:00
<span>{props.buttonText}</span>
</a>
);
}
GithubButton.propTypes = {
buttonText: PropTypes.string.isRequired
};
export default GithubButton;