Update deprecated GitHub Buttons data-count-api (#616)

Also, use single quotes for JS
This commit is contained in:
Amy Lam 2018-04-28 00:34:20 -07:00 committed by Yangshun Tay
parent 6c9c7e5de5
commit 8929634997

View file

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
const React = require("react"); const React = require('react');
const GitHubButton = props => ( const GitHubButton = props => (
<a <a
@ -13,7 +13,7 @@ const GitHubButton = props => (
href={`https://github.com/${props.config.organizationName}/${props.config.projectName}`} href={`https://github.com/${props.config.organizationName}/${props.config.projectName}`}
data-icon="octicon-star" data-icon="octicon-star"
data-count-href={`/${props.config.organizationName}/${props.config.projectName}/stargazers`} data-count-href={`/${props.config.organizationName}/${props.config.projectName}/stargazers`}
data-count-api={`/repos/${props.config.organizationName}/${props.config.projectName}#stargazers_count`} data-show-count="true"
data-count-aria-label="# stargazers on GitHub" data-count-aria-label="# stargazers on GitHub"
aria-label="Star this project on GitHub" aria-label="Star this project on GitHub"
> >