Skip to content

Commit f56c30c

Browse files
committed
Use download icon for public skill stats
Fixes openclaw#1534
1 parent 7bef2a0 commit f56c30c

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/components/SkillListItem.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Link } from "@tanstack/react-router";
2-
import { Package, Star } from "lucide-react";
2+
import { ArrowDownToLine, Star } from "lucide-react";
33
import { MarketplaceIcon } from "./MarketplaceIcon";
44
import { Badge } from "./ui/badge";
55
import { getSkillBadges } from "../lib/badges";
@@ -44,7 +44,8 @@ export function SkillListItem({ skill, ownerHandle, owner }: SkillListItemProps)
4444
<Star size={14} aria-hidden="true" /> {formatCompactStat(skill.stats.stars)}
4545
</span>
4646
<span className="skill-list-item-meta-item">
47-
<Package size={14} aria-hidden="true" /> {formatCompactStat(skill.stats.downloads)}
47+
<ArrowDownToLine size={14} aria-hidden="true" />{" "}
48+
{formatCompactStat(skill.stats.downloads)}
4849
</span>
4950
</div>
5051
</div>

src/components/SkillStats.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Package } from "lucide-react";
1+
import { ArrowDownToLine } from "lucide-react";
22
import { formatSkillStatsTriplet, type SkillStatsTriplet } from "../lib/numberFormat";
33

44
type SkillMetricsStats = SkillStatsTriplet & {
@@ -9,7 +9,8 @@ export function SkillStatsTripletLine({ stats }: { stats: SkillStatsTriplet }) {
99
const formatted = formatSkillStatsTriplet(stats);
1010
return (
1111
<>
12-
{formatted.stars} · <Package size={13} aria-hidden="true" /> {formatted.downloads}
12+
{formatted.stars} · <ArrowDownToLine size={13} aria-hidden="true" />{" "}
13+
{formatted.downloads}
1314
</>
1415
);
1516
}
@@ -19,7 +20,7 @@ export function SkillMetricsRow({ stats }: { stats: SkillMetricsStats }) {
1920
return (
2021
<>
2122
<span className="inline-flex w-14 items-center justify-end gap-1 tabular-nums">
22-
<Package size={13} aria-hidden="true" /> {formatted.downloads}
23+
<ArrowDownToLine size={13} aria-hidden="true" /> {formatted.downloads}
2324
</span>
2425
<span className="inline-flex w-14 items-center justify-end gap-1 tabular-nums">
2526
{formatted.stars}

0 commit comments

Comments
 (0)