diff --git a/packages/nextjs/app/profile/[address]/page.tsx b/packages/nextjs/app/profile/[address]/page.tsx index fff26b4..3e67a5c 100644 --- a/packages/nextjs/app/profile/[address]/page.tsx +++ b/packages/nextjs/app/profile/[address]/page.tsx @@ -157,78 +157,79 @@ const ProfilePage: NextPage = () => { // }; return ( -
- {/* User Profile Section */} -
- {/* Profile Picture */} -
- -
- {/*
+ <> +
+ {/* User Profile Section */} +
+ {/* Profile Picture */} +
+ +
+ {/*
*/} - {/* User Info Section */} -
+ {/* User Info Section */} +
+ {isEditing ? ( + + ) : ( + <> +

{name || "Guest user"}

+
+
+
+

{bio || "no biography available"}

+ {website && ( + + {website} + + )} + + )} +
+ {/* Div to align info in the center */} +
+ {/* User Bio */}{" "} {isEditing ? ( - +
+ <> + + + +
) : ( + <> + )} + {/* Edit/Cancel Button */} + {address === connectedAddress && ( <> -

{name || "Guest user"}

-
-
-
-

{bio || "no biography available"}

- {website && ( - - {website} - + {isEditing ? ( + + ) : ( + + )} + {isEditing && ( +
+ +
)} )}
- {/* Div to align info in the center */} -
- {/* User Bio */}{" "} - {isEditing ? ( -
- <> - - - -
- ) : ( - <> - )} - {/* Edit/Cancel Button */} - {address === connectedAddress && ( - <> - {isEditing ? ( - - ) : ( - - )} - {isEditing && ( -
- -
- )} - - )}
- {loading && } {listedCollectibles.length === 0 ? ( @@ -240,7 +241,7 @@ const ProfilePage: NextPage = () => { ) : ( )} -
+ ); };