diff --git a/.changeset/light-items-trade.md b/.changeset/light-items-trade.md new file mode 100644 index 0000000..9c67621 --- /dev/null +++ b/.changeset/light-items-trade.md @@ -0,0 +1,5 @@ +--- +"@everipedia/iq-login": minor +--- + +Updates login component to use shadcn diff --git a/src/components/Login.tsx b/src/components/Login.tsx index 22c213a..9fa0903 100644 --- a/src/components/Login.tsx +++ b/src/components/Login.tsx @@ -2,28 +2,32 @@ import { ConnectButton } from "@rainbow-me/rainbowkit"; import { SignTokenButton } from "./SignTokenButton"; interface LoginProps { - title: string; - description: string; + title?: string; + description?: string; + connectText?: string; + signTokenText?: string; handleRedirect?: () => void; } -export const Login = ({ title, description, handleRedirect }: LoginProps) => { +export const Login = ({ + title = "Sign In / Connect", + description = "Connect your wallet to access your account", + connectText = "Step 1: Connect your wallet", + signTokenText = "Step 2: Authenticate your wallet", + handleRedirect, +}: LoginProps) => { return ( -
-
-

{title}

-

- {description} -

-
-
-

Step 1: Connect your wallet

- -
-
-

Step 2: Authenticate your wallet

- handleRedirect?.()} /> -
+
+

{title}

+

{description}

+
+
+

{connectText}

+ +
+
+

{signTokenText}

+ handleRedirect?.()} />