2016-08-31 21:12:18 +02:00
|
|
|
import InlineSVG from 'react-inlinesvg';
|
2018-02-07 19:06:07 +01:00
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import React from 'react';
|
2016-08-31 21:12:18 +02:00
|
|
|
|
2017-03-02 21:18:58 +01:00
|
|
|
const githubUrl = require('../../../images/github.svg');
|
|
|
|
|
2016-08-31 21:12:18 +02:00
|
|
|
function GithubButton(props) {
|
|
|
|
return (
|
|
|
|
<a
|
|
|
|
className="github-button"
|
|
|
|
href="/auth/github"
|
|
|
|
>
|
|
|
|
<InlineSVG src={githubUrl} className="github-icon" />
|
|
|
|
<span>{props.buttonText}</span>
|
|
|
|
</a>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
GithubButton.propTypes = {
|
|
|
|
buttonText: PropTypes.string.isRequired
|
|
|
|
};
|
|
|
|
|
|
|
|
export default GithubButton;
|