diff --git a/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx b/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx index 49d99cd2..44ef83b2 100644 --- a/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx +++ b/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx @@ -36,17 +36,17 @@ export function AuthForm({ className }: { className?: string }) { ) : null} - {loginMethods.includes("web3") ? : null} {loginMethods.includes("google") ? : null} {loginMethods.includes("farcaster") ? ( ) : null} + {loginMethods.includes("web3") ? : null} {step === "initial" || step === "otp" ? ( ) : null} diff --git a/packages/client/ui/react-ui/src/components/auth/AuthFormDialog.tsx b/packages/client/ui/react-ui/src/components/auth/AuthFormDialog.tsx index 8909686b..add1d56b 100644 --- a/packages/client/ui/react-ui/src/components/auth/AuthFormDialog.tsx +++ b/packages/client/ui/react-ui/src/components/auth/AuthFormDialog.tsx @@ -2,12 +2,18 @@ import { VisuallyHidden } from "@radix-ui/react-visually-hidden"; import { useAuthForm } from "@/providers/auth/AuthFormProvider"; import { AuthForm } from "./AuthForm"; import { Dialog, DialogContent, DialogDescription, DialogTitle } from "../common/Dialog"; +import { useEffect } from "react"; export default function AuthFormDialog({ open }: { open: boolean }) { const { appearance, setDialogOpen } = useAuthForm(); + // todo come up with a better solution for this! + useEffect(() => { + document.body.style.overflow = open ? "hidden" : ""; + }, [open]); + return ( - + e.preventDefault()} onOpenAutoFocus={(e) => e.preventDefault()} diff --git a/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3ConnectButton.tsx b/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3ConnectButton.tsx index 82c80a7d..7b6b6f8e 100644 --- a/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3ConnectButton.tsx +++ b/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3ConnectButton.tsx @@ -37,19 +37,14 @@ export function Web3ConnectButton({ ); diff --git a/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3Providers.tsx b/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3Providers.tsx index fa7b2e5c..323944f3 100644 --- a/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3Providers.tsx +++ b/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3Providers.tsx @@ -24,7 +24,7 @@ export function Web3Providers() { Connect wallet -
+
- {/* metamask stuff */} ); diff --git a/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3SignIn.tsx b/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3SignIn.tsx index 6fad76a7..67935588 100644 --- a/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3SignIn.tsx +++ b/packages/client/ui/react-ui/src/components/auth/methods/web3/Web3SignIn.tsx @@ -13,16 +13,14 @@ export function Web3SignIn() { return ( ); } diff --git a/packages/client/ui/react-ui/src/components/common/Dialog.tsx b/packages/client/ui/react-ui/src/components/common/Dialog.tsx index e5db3818..1d4a1d03 100644 --- a/packages/client/ui/react-ui/src/components/common/Dialog.tsx +++ b/packages/client/ui/react-ui/src/components/common/Dialog.tsx @@ -33,7 +33,8 @@ interface DialogContentProps extends React.ComponentPropsWithoutRef, DialogContentProps>( ({ className, children, showCloseButton = true, closeButtonColor, closeButtonRingColor, ...props }, ref) => ( - + {/* Because we're using modal={false}, the regular overlay is not shown. We need to add our own overlay */} +