From e38f48bf7c08e7fe2c90a3aa12f77485446c1959 Mon Sep 17 00:00:00 2001 From: Lulox Date: Sat, 28 Sep 2024 14:18:23 -0300 Subject: [PATCH] Damn you responsive --- .../nextjs/app/profile/[address]/page.tsx | 123 +++++++++--------- 1 file changed, 62 insertions(+), 61 deletions(-) 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 = () => { ) : ( )} -
+ ); };