Skip to content

Commit

Permalink
Small change to myProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Sep 20, 2024
1 parent 4ff4310 commit 5b0125d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/nextjs/app/myProfile/_components/MyProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ export const MyProfile: NextPage = () => {

return (
<div className="flex flex-col items-center p-6">
<div className="flex justify-center mb-4">
{!isConnected || isConnecting ? (
<RainbowKitCustomConnectButton />
) : (
<div className="flex flex-row gap-3">
<button className="btn btn-secondary" onClick={handleMintItem}>
Mint test NFT
</button>
<button className="btn btn-secondary" onClick={handleMintUSDC}>
Mint test USDC
</button>
</div>
)}
</div>
{/* User Profile Section */}
<div className="relative flex flex-col items-center bg-base-100 p-6 rounded-lg shadow-md w-full max-w-lg">
{/* Edit Profile Button */}
Expand Down Expand Up @@ -138,23 +152,9 @@ export const MyProfile: NextPage = () => {
</div>
</div>
{/* Content Based on Active Tab */}
<div className="bg-base-200 p-6 rounded-lg shadow-md">
<div className="bg-base-200 rounded-lg">
{activeTab === "your-nfts" && (
<>
<div className="flex justify-center mb-4">
{!isConnected || isConnecting ? (
<RainbowKitCustomConnectButton />
) : (
<div className="flex flex-row gap-3">
<button className="btn btn-secondary" onClick={handleMintItem}>
Mint test NFT
</button>
<button className="btn btn-secondary" onClick={handleMintUSDC}>
Mint test USDC
</button>
</div>
)}
</div>
<MyHoldings />
</>
)}
Expand Down

0 comments on commit 5b0125d

Please sign in to comment.