Refactor gift registry UI to use InfoCard component
Simplified the gift registry section by replacing custom JSX with the reusable InfoCard component. This improves code maintainability and consistency in the UI while retaining the existing styles and functionality. Updated InfoCard styling to ensure compatibility with the new use case.
This commit is contained in:
@@ -75,12 +75,13 @@ const InfoCard: React.FC<InfoCardProps> = ({
|
||||
imagePosition === "right"
|
||||
? "md:flex-row-reverse md:space-x-reverse"
|
||||
: "md:flex-row",
|
||||
"w-full",
|
||||
)}
|
||||
>
|
||||
{imageElement}
|
||||
|
||||
<Card
|
||||
className="flex-1 relative overflow-hidden p-6"
|
||||
className="flex-1 relative overflow-hidden p-6 w-full"
|
||||
style={{ backgroundColor, borderColor, boxShadow }}
|
||||
>
|
||||
{imageSrc && (
|
||||
|
||||
Reference in New Issue
Block a user