Skip to content

Commit

Permalink
Update ConnectButton component in Login.tsx to include showBalance prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Royal-lobster committed Sep 2, 2024
1 parent 2cd7cba commit 97dce79
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions src/components/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
import { ConnectButton } from "@rainbow-me/rainbowkit";
import { SignTokenButton } from "./SignTokenButton";
import { ConnectButton } from '@rainbow-me/rainbowkit'
import { SignTokenButton } from './SignTokenButton'

interface LoginProps {
title: string;
description: string;
handleRedirect?: () => void;
title: string
description: string
handleRedirect?: () => void
}

export const Login = ({ title, description, handleRedirect }: LoginProps) => {
return (
<div className="grid min-h-[calc(100vh-250px)] place-items-center py-4 md:p-4">
<div className="max-w-xl text-center">
<h1 className="mb-4 text-4xl font-bold">{title}</h1>
<p className="mb-8 text-lg text-gray-500 dark:text-alpha-900">
{description}
</p>
<div className="mt-8 rounded-md border bg-gray-100 dark:border-gray-500 dark:bg-gray-700">
<div className="flex flex-col items-center p-4">
<h2 className="mb-4 text-xl">Step 1: Connect your wallet</h2>
<ConnectButton />
</div>
<div className="flex flex-col items-center border-t p-4 dark:border-gray-500">
<h2 className="mb-4 text-xl">Step 2: Authenticate your wallet</h2>
<SignTokenButton handleRedirect={() => handleRedirect?.()} />
</div>
</div>
</div>
</div>
);
};
return (
<div className="grid min-h-[calc(100vh-250px)] place-items-center py-4 md:p-4">
<div className="max-w-xl text-center">
<h1 className="mb-4 text-4xl font-bold">{title}</h1>
<p className="mb-8 text-lg text-gray-500 dark:text-alpha-900">
{description}
</p>
<div className="mt-8 rounded-md border bg-gray-100 dark:border-gray-500 dark:bg-gray-700">
<div className="flex flex-col items-center p-4">
<h2 className="mb-4 text-xl">Step 1: Connect your wallet</h2>
<ConnectButton showBalance />
</div>
<div className="flex flex-col items-center border-t p-4 dark:border-gray-500">
<h2 className="mb-4 text-xl">Step 2: Authenticate your wallet</h2>
<SignTokenButton handleRedirect={() => handleRedirect?.()} />
</div>
</div>
</div>
</div>
)
}

0 comments on commit 97dce79

Please sign in to comment.