Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/components/OpenSourceStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
)
}

const NpmDownloadCounter = ({

Check warning on line 50 in app/components/OpenSourceStats.tsx

View workflow job for this annotation

GitHub Actions / PR

'NpmDownloadCounter' is assigned a value but never used
npmData,
}: {
npmData: Parameters<typeof useNpmDownloadCounter>[0]
Expand All @@ -62,7 +62,7 @@
owner: 'tanstack',
})
)
const { data: npm } = useSuspenseQuery(

Check warning on line 65 in app/components/OpenSourceStats.tsx

View workflow job for this annotation

GitHub Actions / PR

'npm' is assigned a value but never used
convexQuery(api.stats.getNpmOrg, {
name: 'tanstack',
})
Expand All @@ -80,7 +80,11 @@
<FaDownload className="text-2xl group-hover:text-emerald-500 transition-colors duration-200" />
<div>
<div className="text-2xl font-bold opacity-80 relative group-hover:text-emerald-500 transition-colors duration-200">
<NpmDownloadCounter npmData={npm} />
{/* Uncomment for live counter */}
{/*<NpmDownloadCounter npmData={npm} />*/}

{/* Uncomment for static counter */}
<StableCounter value={1688523620} />
</div>
<div className="text-sm opacity-50 font-medium italic group-hover:text-emerald-500 transition-colors duration-200">
NPM Downloads
Expand Down
Loading