Skip to content

Commit 0689340

Browse files
committed
fix stats
1 parent 5cbb93b commit 0689340

File tree

1 file changed

+9
-11
lines changed
  • packages/app/src/app/pages/common/Stats

1 file changed

+9
-11
lines changed

packages/app/src/app/pages/common/Stats/index.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ interface Props {
1313
sandbox: Sandbox;
1414
}
1515

16-
const StatsComponent = ({ sandbox }: Props) => {
1716
const StatsComponent = ({ sandbox }: Props) => (
18-
<Stats>
19-
<Stat Icon={<EyeIcon />} count={sandbox.viewCount} />
20-
<Stat
21-
Icon={<LikeHeart sandbox={sandbox} colorless />}
22-
count={sandbox.likeCount}
23-
/>
24-
<Stat Icon={<ForkIcon />} count={sandbox.forkCount} />
25-
</Stats>
26-
);
27-
};
17+
<Stats>
18+
<Stat Icon={<EyeIcon />} count={sandbox.viewCount} />
19+
<Stat
20+
Icon={<LikeHeart sandbox={sandbox} colorless />}
21+
count={sandbox.likeCount}
22+
/>
23+
<Stat Icon={<ForkIcon />} count={sandbox.forkCount} />
24+
</Stats>
25+
);
2826

2927
export default observer(StatsComponent);

0 commit comments

Comments
 (0)