Refactor gift registry UI to use InfoCard component
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 57s

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:
2025-03-14 15:27:13 +01:00
parent 5ca138928a
commit 03cb95b4b3
2 changed files with 23 additions and 56 deletions

View File

@@ -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 && (