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