Skip to content

Commit 03117c5

Browse files
committed
refactor(project-card): simplify the display logic of download information in project cards
1 parent 6c3dc78 commit 03117c5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/cards/project/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ import { fetcher } from '~/utils/misc'
1717
function NpmStats({ npmPackageName, downloads }: { npmPackageName: string; downloads: number }) {
1818
return (
1919
<div className="space-y-1.5">
20-
<div className="text-xs text-gray-600 dark:text-gray-400">
21-
<span className="hidden sm:inline">Monthly downloads</span>
22-
<span className="sm:hidden">Downloads</span>
23-
</div>
20+
<div className="text-xs text-gray-600 dark:text-gray-400">Downloads</div>
2421
<div className="flex items-center gap-2">
2522
<Link
2623
href={`https://www.npmjs.com/package/${npmPackageName}`}

0 commit comments

Comments
 (0)