p5.js-web-editor/client/modules/User/components/GithubButton.jsx
2017-03-02 15:18:58 -05:00

22 lines
472 B
JavaScript

import InlineSVG from 'react-inlinesvg';
import React, { PropTypes } from 'react';
const githubUrl = require('../../../images/github.svg');
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;