aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/OAuth2Button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/OAuth2Button.tsx')
-rw-r--r--src/components/OAuth2Button.tsx5
1 files changed, 3 insertions, 2 deletions
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<HTML
}
function OAuth2Button(props: OAuth2ButtonProps): JSX.Element {
- const [disabled, setDisabled] = useState<boolean>(false);
+ const [disabled, setDisabled] = useState<boolean>(props.disabled);
const errorDialog: React.RefObject<HTMLDivElement> = React.useRef(null);
return <span>