Skip to content

Commit 6fe646a

Browse files
committed
Hide stats for now
1 parent 8e1f643 commit 6fe646a

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

app/About/page.tsx

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@
22

33
import Link from "next/link";
44
import {aColor} from "@/lib/client/constants";
5-
import {useEffect, useState} from "react";
65

76
export default function About() {
87

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
2120
return (
2221
<div className="text-gray-600 dark:text-white min-h-screen p-6">
2322
{aColor}
@@ -59,8 +58,8 @@ export default function About() {
5958
<h5 id="github-repo">Source Code</h5>
6059
<p>The source code and instructions for development are available on <a href="https://github.com/BayesBond/BayesBond">GitHub</a>.</p>
6160
</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>*/}
6463
</div>
6564
</div>
6665
);

0 commit comments

Comments
 (0)