diff --git a/src/components/GameCard.astro b/src/components/GameCard.astro index da71b54..9b1ff99 100644 --- a/src/components/GameCard.astro +++ b/src/components/GameCard.astro @@ -1,6 +1,7 @@ --- import type { Game } from '../types/game'; import Tag from './Tag.astro'; +import StarRating from './StarRating.astro'; import ArrowRight from '../assets/icons/arrow-right.svg'; interface Props { @@ -39,6 +40,12 @@ const { game } = Astro.props;

{game.description}

+ {game.starRating !== null ? ( + + ) : ( +

No rating yet

+ )} +
View details