fix SignInPageWrapper with new sign in hooks
Signed-off-by: headphonejames <generalfuzz@gmail.com>
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user