diff --git a/packages/nextjs/app/profile/[address]/page.tsx b/packages/nextjs/app/profile/[address]/page.tsx index b360973..fff26b4 100644 --- a/packages/nextjs/app/profile/[address]/page.tsx +++ b/packages/nextjs/app/profile/[address]/page.tsx @@ -9,7 +9,7 @@ import { ProfilePictureUpload } from "../_components/ProfilePictureUpload"; import { NextPage } from "next"; import { useAccount } from "wagmi"; import { PencilIcon } from "@heroicons/react/24/outline"; -import { Address, RainbowKitCustomConnectButton } from "~~/components/scaffold-eth"; +import { Address } from "~~/components/scaffold-eth"; import { InputBase } from "~~/components/scaffold-eth"; import { useScaffoldEventHistory, useScaffoldReadContract, useScaffoldWriteContract } from "~~/hooks/scaffold-eth"; import { notification } from "~~/utils/scaffold-eth"; @@ -35,7 +35,7 @@ const ProfilePage: NextPage = () => { const [listedCollectibles, setListedCollectibles] = useState([]); const [loading, setLoading] = useState(true); - const { address: connectedAddress, isConnected, isConnecting } = useAccount(); + const { address: connectedAddress } = useAccount(); const pathname = usePathname(); const address = pathname.split("/").pop(); @@ -137,9 +137,9 @@ const ProfilePage: NextPage = () => { return

Inexistent address, try again...

; } - if (loading) { - return ; - } + // if (loading) { + // return ; + // } if (createIsLoadingEvents) { return ; @@ -157,7 +157,7 @@ const ProfilePage: NextPage = () => { // }; return ( -
+
{/* User Profile Section */}
{/* Profile Picture */} @@ -229,24 +229,17 @@ const ProfilePage: NextPage = () => { )}
-
- <> -
-
- {!isConnected || isConnecting ? : ""} -
- {listedCollectibles.length === 0 ? ( -
-
No NFTs found
-
- ) : loading ? ( - - ) : ( - - )} -
- -
+ {loading && } + + {listedCollectibles.length === 0 ? ( +
+
No NFTs found
+
+ ) : loading ? ( + + ) : ( + + )}
); };