From b0ad6ec9c3dfc86a2bf76e052bbfcab1eda52074 Mon Sep 17 00:00:00 2001 From: TheDancingCode Date: Mon, 22 Jan 2018 13:56:28 +0100 Subject: [PATCH] Fix deprecation warning from Github Buttons on website (#3783) Using data-show-count instead of data-count-api. --- website/core/Footer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/website/core/Footer.js b/website/core/Footer.js index 66fd598ea..15b39a994 100644 --- a/website/core/Footer.js +++ b/website/core/Footer.js @@ -7,9 +7,7 @@ const GithubButton = props => ( className="github-button" href={props.config.githubUrl} data-icon="octicon-star" - data-count-href={`/${props.config.repo}/stargazers`} - data-count-api={`/repos/${props.config.repo}#stargazers_count`} - data-count-aria-label="# stargazers on GitHub" + data-show-count="true" aria-label="Star this project on GitHub" > Star