Skip to content

Commit

Permalink
Re-introduce Patreon count
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed May 21, 2023
1 parent bd74e7e commit d5baec1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/SocialIcons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ export default function SocialIcons() {
// As of 5/21/23. In a perfect world, these would not be used
const fallbackYouTubeCount = 5200000;
const fallbackTwitterCount = 324000;
const fallbackPatronCount = 6300;

useEffect(() => {
fetchFollowerCount(setYoutubeSubscribers, "youtubeSubscribers", "/api/youtube_subscriber_count");
fetchFollowerCount(setTwitterFollowers, "twitterFollowers", "/api/twitter_follower_count");
fetchFollowerCount(setPatreonPatrons, "patreonPatrons", "/api/patreon_member_count");
}, []);

return (
Expand All @@ -37,14 +39,16 @@ export default function SocialIcons() {
restingColor="#1DA1F2"
label={`${formatNumber(twitterFollowers || fallbackTwitterCount)}`}
/>
</div>
<div className={styles.restRow}>
<Link
link="https://www.patreon.com/3blue1brown"
icon="fab fa-patreon"
tooltip="Support future lessons"
hoverColor="#f96854"
restingColor="#f96854"
label={`${formatNumber(patreonPatrons || fallbackPatronCount)}`}
/>
</div>
<div className={styles.restRow}>
<Link
link="https://3blue1brown.substack.com/"
icon="fas fa-envelope-open-text"
Expand Down

0 comments on commit d5baec1

Please sign in to comment.