setOpen(false)}>
e.stopPropagation()}
@@ -125,11 +125,11 @@ export function AdminUserActions({ user }: { user: UserData }) {
type="button"
onClick={() => setHidden((h) => !h)}
className={`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${
- hidden ? 'bg-slate-600' : 'bg-indigo-600'
+ hidden ? 'bg-indigo-600' : 'bg-slate-600'
}`}
>
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 391e026..3ccaefa 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -11,7 +11,7 @@ export const revalidate = 0
async function getStats() {
const [userCount, hashtagCount, tradeCount, topHashtags, recentTrades] = await Promise.all([
- prisma.user.count({ where: { isFund: false } }),
+ prisma.user.count({ where: { isFund: false, isHidden: false } }),
prisma.hashtag.count({ where: { isActive: true } }),
prisma.trade.count(),
// Top by current price (most active)