e7abb55ee7
* Update to react, react-dom 16.2.0 * Update react-redux * Update react-tabs * Update redux-devtools * Update redux-devtools-dock-monitor * Update redux-devtools-log-monitor * Add prop-types package * Update gitignore * Update all files to use prop-types package * Update react-router * Update react-inlinesvg
23 lines
493 B
JavaScript
23 lines
493 B
JavaScript
import InlineSVG from 'react-inlinesvg';
|
|
import PropTypes from 'prop-types';
|
|
import React 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;
|