fix SignInPageWrapper with new sign in hooks

Signed-off-by: headphonejames <generalfuzz@gmail.com>
This commit is contained in:
headphonejames
2023-02-21 19:35:37 -08:00
parent ad15aaa285
commit 0354c9fb0d
+15 -1
View File
@@ -72,8 +72,22 @@ function SignInPageWrapper({
const configApi = useApi(configApiRef);
const basePath = getBasePath(configApi);
const handleSignInStarted = () => {
// no-op
};
const handleSignInFailure = () => {
// no-op
};
if (!identityApi) {
return <Component onSignInSuccess={setIdentityApi} />;
return (
<Component
onSignInSuccess={setIdentityApi}
onSignInStarted={handleSignInStarted}
onSignInFailure={handleSignInFailure}
/>
);
}
appIdentityProxy.setTarget(identityApi, {