@@ -5,7 +5,7 @@ import { Header } from '@/ui/elements/Header';
55import { PreviewButton } from '@/ui/elements/PreviewButton' ;
66import { UserPreview } from '@/ui/elements/UserPreview' ;
77
8- import { withRedirectToAfterSignIn , withRedirectToSignInTask } from '../../common' ;
8+ import { withRedirectToAfterSignIn } from '../../common' ;
99import { useEnvironment , useSignInContext , useSignOutContext } from '../../contexts' ;
1010import { Col , descriptors , Flow , localizationKeys } from '../../customizables' ;
1111import { Add , SwitchArrowRight } from '../../icons' ;
@@ -15,10 +15,11 @@ import { useMultisessionActions } from '../UserButton/useMultisessionActions';
1515const SignInAccountSwitcherInternal = ( ) => {
1616 const card = useCardState ( ) ;
1717 const { userProfileUrl } = useEnvironment ( ) . displayConfig ;
18- const { afterSignInUrl, path : signInPath , signInUrl } = useSignInContext ( ) ;
18+ const { afterSignInUrl, path : signInPath , signInUrl, taskUrl } = useSignInContext ( ) ;
1919 const { navigateAfterSignOut } = useSignOutContext ( ) ;
2020 const { handleSignOutAllClicked, handleSessionClicked, signedInSessions, handleAddAccountClicked } =
2121 useMultisessionActions ( {
22+ taskUrl,
2223 navigateAfterSignOut,
2324 afterSwitchSessionUrl : afterSignInUrl ,
2425 userProfileUrl,
@@ -125,6 +126,4 @@ const SignInAccountSwitcherInternal = () => {
125126 </ Flow . Part >
126127 ) ;
127128} ;
128- export const SignInAccountSwitcher = withRedirectToSignInTask (
129- withRedirectToAfterSignIn ( withCardStateProvider ( SignInAccountSwitcherInternal ) ) ,
130- ) ;
129+ export const SignInAccountSwitcher = withRedirectToAfterSignIn ( withCardStateProvider ( SignInAccountSwitcherInternal ) ) ;
0 commit comments