|
2 | 2 |
|
3 | 3 | import Link from "next/link"; |
4 | 4 | import {aColor} from "@/lib/client/constants"; |
5 | | -import {useEffect, useState} from "react"; |
6 | 5 |
|
7 | 6 | export default function About() { |
8 | 7 |
|
9 | | - const [totalUsers, setTotalUsers] = useState<number>(0); |
10 | | - useEffect(() => { |
11 | | - const getCount = async () => { |
12 | | - const countResponse = await fetch('/api/profiles/count'); |
13 | | - if (countResponse.ok) { |
14 | | - const {count} = await countResponse.json(); |
15 | | - setTotalUsers(count); |
16 | | - } |
17 | | - }; |
18 | | - |
19 | | - getCount(); |
20 | | - }, []); // <- runs once after initial mount |
| 8 | + // const [totalUsers, setTotalUsers] = useState<number>(0); |
| 9 | + // useEffect(() => { |
| 10 | + // const getCount = async () => { |
| 11 | + // const countResponse = await fetch('/api/profiles/count'); |
| 12 | + // if (countResponse.ok) { |
| 13 | + // const {count} = await countResponse.json(); |
| 14 | + // setTotalUsers(count); |
| 15 | + // } |
| 16 | + // }; |
| 17 | + // |
| 18 | + // getCount(); |
| 19 | + // }, []); // <- runs once after initial mount |
21 | 20 | return ( |
22 | 21 | <div className="text-gray-600 dark:text-white min-h-screen p-6"> |
23 | 22 | {aColor} |
@@ -59,8 +58,8 @@ export default function About() { |
59 | 58 | <h5 id="github-repo">Source Code</h5> |
60 | 59 | <p>The source code and instructions for development are available on <a href="https://github.com/BayesBond/BayesBond">GitHub</a>.</p> |
61 | 60 | </div> |
62 | | - <h3 id="how-to-help">Statistics</h3> |
63 | | - <p>{totalUsers} total users</p> |
| 61 | + {/*<h3 id="how-to-help">Statistics</h3>*/} |
| 62 | + {/*<p>{totalUsers} total users</p>*/} |
64 | 63 | </div> |
65 | 64 | </div> |
66 | 65 | ); |
|
0 commit comments