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

22 lines
471 B
React
Raw Normal View History

2016-08-31 21:12:18 +02:00
import InlineSVG from 'react-inlinesvg';
const githubUrl = require('../../../images/github.svg');
import React, { PropTypes } from 'react';
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;