From c8b82ece055efca32050f39145a93f1d195479de Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 21 Mar 2025 18:33:55 -0300 Subject: [PATCH 1/2] fix: update OAuthButton to accept button props and handle disabled state --- apps/dashboard/app/auth/oauth-button.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/dashboard/app/auth/oauth-button.tsx b/apps/dashboard/app/auth/oauth-button.tsx index 2b680cebf0..4bafd657ea 100644 --- a/apps/dashboard/app/auth/oauth-button.tsx +++ b/apps/dashboard/app/auth/oauth-button.tsx @@ -1,15 +1,15 @@ "use client"; -import type { PropsWithChildren } from "react"; +import type { ComponentProps } from "react"; -type Props = { - onClick: () => Promise; -}; -export const OAuthButton: React.FC> = ({ onClick, children }) => { +type ButtonElementProps = ComponentProps<"button">; + +export const OAuthButton: React.FC = ({ onClick, disabled, children }) => { return (