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