From 17566f518eac13345c7b9768696f2bb37fd8a1c4 Mon Sep 17 00:00:00 2001 From: jmderby Date: Tue, 15 Oct 2024 15:26:12 -0700 Subject: [PATCH] fixed styles and added stytch token call --- .../next/src/app/_lib/providers.tsx | 2 +- .../react-ui/src/components/auth/AuthForm.tsx | 15 ++++-- .../src/components/auth/AuthFormDialog.tsx | 4 +- .../auth/methods/discord/DiscordSignIn.tsx | 9 +++- .../auth/methods/email/EmailOTPInput.tsx | 11 +++-- .../auth/methods/email/EmailSignIn.tsx | 10 ++-- .../methods/farcaster/FarcasterSignIn.tsx | 18 +++++--- .../auth/methods/google/GoogleSignIn.tsx | 9 +++- .../react-ui/src/components/common/Dialog.tsx | 21 ++++++--- .../src/components/common/Divider.tsx | 9 ++-- .../src/components/common/InputOTP.tsx | 2 +- .../src/components/common/Spinner.tsx | 4 +- .../src/hooks/useOAuthWindowListener.ts | 2 +- .../client/ui/react-ui/src/twind.config.ts | 9 ++++ .../ui/react-ui/src/utils/generateOAuthUrl.ts | 46 +++++++++++++++---- 15 files changed, 122 insertions(+), 49 deletions(-) diff --git a/apps/wallets/smart-wallet/next/src/app/_lib/providers.tsx b/apps/wallets/smart-wallet/next/src/app/_lib/providers.tsx index 65890097..3663eb22 100644 --- a/apps/wallets/smart-wallet/next/src/app/_lib/providers.tsx +++ b/apps/wallets/smart-wallet/next/src/app/_lib/providers.tsx @@ -19,7 +19,7 @@ export function Providers({ children }: { children: ReactNode }) { }} appearance={{ spacingUnit: "8px", - borderRadius: "12px", + borderRadius: "16px", colors: { inputBackground: "#fffdf9", buttonBackground: "#fffaf2", 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 c213b277..b2dc194e 100644 --- a/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx +++ b/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx @@ -15,17 +15,17 @@ export function AuthForm({ loginMethods }: { loginMethods: LoginMethod[] }) { const { step, appearance, baseUrl } = useAuthForm(); return ( -
+
{step === "initial" ? (

Sign In

Sign in using one of the options below @@ -59,14 +59,19 @@ export function AuthForm({ loginMethods }: { loginMethods: LoginMethod[] }) { export const AuthFormBackButton = ({ className, iconColor, + ringColor, ...props -}: React.HTMLAttributes & { iconColor?: string }) => { +}: React.HTMLAttributes & { iconColor?: string; ringColor?: string }) => { return (