Skip to content

Commit 717c4c4

Browse files
authored
feat: Added card info in card component. (#67)
1 parent e0ca0e9 commit 717c4c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frontend/src/components/Cards.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ export const Cards: FC<Props> = ({ user, ownedCards, setOwnedCards }) => {
6666
const Card = ({ card }: { card: CardType }) => {
6767
const amountOwned = ownedCards.find((c) => c.card_id === card.id)?.amount_owned || 0
6868
return (
69-
<div className="flex flex-col items-center gap-y-4 w-fit border border-gray-700 p-4 rounded-lg shadow-md hover:shadow-lg transition duration-200 group">
69+
<div className="flex flex-col items-center gap-y-2 w-fit border border-gray-700 p-4 rounded-lg shadow-md hover:shadow-lg transition duration-200 group">
7070
<FancyCard card={card} selected={amountOwned > 0} setIsSelected={() => {}} />
71-
<div className="flex items-center gap-x-4 mt-2">
71+
<p className="text-[12px] font-semibold whitespace-nowrap overflow-hidden text-ellipsis max-w-[130px]">
72+
{card.id} - {card.name}
73+
</p>
74+
<div className="flex items-center gap-x-4">
7275
<button
7376
type="button"
7477
onClick={() => updateCardCount(card.id, -1)}

0 commit comments

Comments
 (0)