Update game-card.tsx

This commit is contained in:
Shisuys 2025-02-11 19:17:58 -03:00
parent 282bb45869
commit dddc5bfd96

View file

@ -75,7 +75,7 @@ export function GameCard({ game, ...props }: GameCardProps) {
<p className="game-card__title">{game.title}</p>
</div>
{uniqueRepackers.length > 0 ? (
{uniqueRepackers.length > 0 ? (
<ul className="game-card__download-options">
{firstThreeRepackers.map((repacker) => (
<li key={repacker}>
@ -85,16 +85,17 @@ export function GameCard({ game, ...props }: GameCardProps) {
{remainingCount > 0 && (
<li>
<Badge>
+{remainingCount} {t("game_card:available", { count: remainingCount })}
+{remainingCount}{" "}
{t("game_card:available", { count: remainingCount })}
</Badge>
</li>
)}
</ul>
) : (
) : (
<p className="game-card__no-download-label">{t("no_downloads")}</p>
)}
)}
<div className="game-card__specifics">
<div className="game-card__specifics">
<div className="game-card__specifics-item">
<DownloadIcon />
<span>
@ -107,8 +108,7 @@ export function GameCard({ game, ...props }: GameCardProps) {
{stats ? numberFormatter.format(stats.playerCount) : "…"}
</span>
</div>
</div>
</div>
</div>
</div>
</button>