From ada271cfc6b569d115322536555e936f5aa98aee Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Fri, 8 Aug 2025 23:26:59 +0100 Subject: Pass precheck data down tree for submission --- src/components/OAuth2Button.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/components') diff --git a/src/components/OAuth2Button.tsx b/src/components/OAuth2Button.tsx index 5e980b7..1658d42 100644 --- a/src/components/OAuth2Button.tsx +++ b/src/components/OAuth2Button.tsx @@ -11,7 +11,8 @@ import { selectable } from "../commonStyles"; interface OAuth2ButtonProps { scopes?: OAuthScopes[], - rerender?: () => void + rerender?: () => void, + disabled: boolean, } const iconStyles = css` @@ -68,7 +69,7 @@ async function login(props: OAuth2ButtonProps, errorDialog: React.RefObject(false); + const [disabled, setDisabled] = useState(props.disabled); const errorDialog: React.RefObject = React.useRef(null); return -- cgit v1.2.3