From 3d0e2e69610d2276314525cdb71748b3da955299 Mon Sep 17 00:00:00 2001 From: neodk2004 Date: Sat, 6 Jun 2026 10:49:13 +0200 Subject: [PATCH] fix(01-03): pet card click navigates to profile page --- src/app/(app)/pets/PetGrid.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/(app)/pets/PetGrid.tsx b/src/app/(app)/pets/PetGrid.tsx index bb31846..d89fefc 100644 --- a/src/app/(app)/pets/PetGrid.tsx +++ b/src/app/(app)/pets/PetGrid.tsx @@ -51,7 +51,10 @@ export function PetGrid({ pets }: PetGridProps) { key={pet.id} pet={pet} isActive={pet.id === activePetId} - onSelect={(id) => setActivePet(id)} + onSelect={(id) => { + setActivePet(id); + router.push(`/pets/${id}`); + }} /> ))} {/* Add pet card */}