Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions apps/web-wallet/app/features/gift-cards/gift-card-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ export function GiftCardItem({
const balance = getAccountBalance(account);
const name = account.name;

if (!image && hideOverlayContent) {
return (
<WalletCard size={size} className={className}>
<WalletCardBlank />
<WalletCardOverlay className="flex items-center justify-center px-4">
<span className="truncate text-foreground text-lg">{name}</span>
</WalletCardOverlay>
</WalletCard>
);
}

return (
<WalletCard size={size} className={className}>
{image ? (
Expand Down
2 changes: 1 addition & 1 deletion apps/web-wallet/app/features/gift-cards/offer-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function OfferItem({ account, image }: OfferItemProps) {
<>
<WalletCardBlank />
<WalletCardOverlay className="flex items-center justify-center px-4">
<span className="truncate text-card-foreground text-lg">
<span className="truncate text-foreground text-lg">
{account.name}
</span>
</WalletCardOverlay>
Expand Down
2 changes: 1 addition & 1 deletion apps/web-wallet/app/features/gift-cards/offers-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function OfferCardButton({
<>
<WalletCardBlank />
<WalletCardOverlay className="flex items-center justify-center px-4">
<span className="truncate text-card-foreground text-lg">
<span className="truncate text-foreground text-lg">
{account.name}
</span>
</WalletCardOverlay>
Expand Down
Loading