From e6411388873c02bbdcb0a0c37cf49cb70d3633a4 Mon Sep 17 00:00:00 2001 From: Evandro Fonseca Junior Date: Thu, 30 Oct 2025 19:17:46 -0300 Subject: [PATCH] refactor: replace MarketOffers component with MarketExample in home page Renamed imported component from MarketOffers to MarketExample and updated its usage in the home page layout. Also removed rarity badge display from ItemCard to align with simplified design. Related to component refactoring for consistency. --- app/[locale]/page.tsx | 4 +- components/item-card.tsx | 15 --- components/sections/market-example.tsx | 164 +++++++++++++++++++++++++ lib/mock-data.ts | 50 ++++---- messages/en.json | 5 + messages/pt.json | 5 + 6 files changed, 201 insertions(+), 42 deletions(-) create mode 100644 components/sections/market-example.tsx diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index 3671236..cbd9c06 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -4,7 +4,7 @@ import { EscrowExplanation } from "@/components/sections/escrow-explanation"; import { HeroSection } from "@/components/sections/hero-section"; import { HowItWorks } from "@/components/sections/how-it-works"; import { FeaturedItems } from "@/components/sections/featured-items"; -import { MarketOffers } from "@/components/sections/market-offers"; +import { MarketExample } from "@/components/sections/market-example"; import { MarketStats } from "@/components/sections/market-stats"; import { DonationFooterCard } from "@/components/donation-footer-card"; @@ -17,7 +17,7 @@ export default function Home() { - + diff --git a/components/item-card.tsx b/components/item-card.tsx index 10cd2e8..28d6d22 100644 --- a/components/item-card.tsx +++ b/components/item-card.tsx @@ -283,21 +283,6 @@ export function ItemCard({ item, mode = "market" }: ItemCardProps) { {/* Header com ícone e badge de raridade */}
- {/* Badge de raridade com glow (apenas em modo market) */} - {mode === "market" && ( - - {item.rarity} - - )} - {/* Botão de favorito */}