diff --git a/app/About/page.tsx b/app/About/page.tsx index 43decb32..ba5e9023 100644 --- a/app/About/page.tsx +++ b/app/About/page.tsx @@ -2,22 +2,21 @@ import Link from "next/link"; import {aColor} from "@/lib/client/constants"; -import {useEffect, useState} from "react"; export default function About() { - const [totalUsers, setTotalUsers] = useState(0); - useEffect(() => { - const getCount = async () => { - const countResponse = await fetch('/api/profiles/count'); - if (countResponse.ok) { - const {count} = await countResponse.json(); - setTotalUsers(count); - } - }; - - getCount(); - }, []); // <- runs once after initial mount + // const [totalUsers, setTotalUsers] = useState(0); + // useEffect(() => { + // const getCount = async () => { + // const countResponse = await fetch('/api/profiles/count'); + // if (countResponse.ok) { + // const {count} = await countResponse.json(); + // setTotalUsers(count); + // } + // }; + // + // getCount(); + // }, []); // <- runs once after initial mount return (
{aColor} @@ -59,8 +58,8 @@ export default function About() {
Source Code

The source code and instructions for development are available on GitHub.

-

Statistics

-

{totalUsers} total users

+ {/*

Statistics

*/} + {/*

{totalUsers} total users

*/} );