diff --git a/pages/fiscal-sponsorship/index.js b/pages/fiscal-sponsorship/index.js index 27ea8912..9b12a3e2 100644 --- a/pages/fiscal-sponsorship/index.js +++ b/pages/fiscal-sponsorship/index.js @@ -171,6 +171,14 @@ function MobileAppAlert() { export default function Page() { const [hasReferral, setHasReferral] = useState(false) +const [mobileInstalls, setMobileInstalls] = useState(0) + useEffect(() => { + fetch('https://hcb.hackclub.com/stats') + .then(res => res.json()) + .then(data => { + setMobileInstalls(data.mobile_installs) + }) + }, []) useEffect(() => { const params = new URLSearchParams(window.location.search) @@ -415,7 +423,10 @@ export default function Page() { - + + + {mobileInstalls.toLocaleString()} installs +