From e84b6a9cd78b9b7b864e67a0a1c34264a63078e6 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 6 Mar 2026 14:20:06 +0000 Subject: [PATCH] Edit app-9xzmfic2e4g1/src/pages/AccountPage.tsx via Editor --- app-9xzmfic2e4g1/src/pages/AccountPage.tsx | 36 ++++++++++++++++------ 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/app-9xzmfic2e4g1/src/pages/AccountPage.tsx b/app-9xzmfic2e4g1/src/pages/AccountPage.tsx index c41a99b..5043521 100644 --- a/app-9xzmfic2e4g1/src/pages/AccountPage.tsx +++ b/app-9xzmfic2e4g1/src/pages/AccountPage.tsx @@ -144,11 +144,24 @@ export default function AccountPage() {
- {trip.title} + {(() => { + const firstItem = trip.itinerary?.days?.[0]?.items?.[0]; + const photoSrc = firstItem?.photo_reference + ? (firstItem.photo_reference.startsWith('http') + ? firstItem.photo_reference + : api.getPhotoUrl(firstItem.photo_reference)) + : 'https://images.unsplash.com/photo-1541167760496-1628856ab772?auto=format&fit=crop&q=80&w=800'; + return ( + {trip.title} { + (e.target as HTMLImageElement).src = 'https://images.unsplash.com/photo-1541167760496-1628856ab772?auto=format&fit=crop&q=80&w=800'; + }} + /> + ); + })()}
@@ -204,10 +217,15 @@ export default function AccountPage() {
{trip.itinerary.days[0].items.slice(0, 3).map((item, i) => (
- { + (e.target as HTMLImageElement).src = 'https://images.unsplash.com/photo-1541167760496-1628856ab772?w=100&q=80'; + }} />
))}