Fix sign in redirect
This commit is contained in:
parent
c98e262fd0
commit
c550534d6c
4 changed files with 20 additions and 4 deletions
|
|
@ -190,7 +190,10 @@ export const SharedQuizView: React.FC<SharedQuizViewProps> = ({ onHostQuiz, shar
|
|||
</button>
|
||||
) : (
|
||||
<button
|
||||
onClick={() => auth.signinRedirect()}
|
||||
onClick={() => {
|
||||
sessionStorage.setItem('kaboot_auth_return_url', window.location.pathname);
|
||||
auth.signinRedirect();
|
||||
}}
|
||||
className="w-full bg-gray-100 text-gray-600 py-3 rounded-2xl text-lg font-black hover:bg-gray-200 shadow-[0_4px_0_#d1d5db] active:shadow-none active:translate-y-[4px] transition-all flex items-center justify-center gap-2"
|
||||
>
|
||||
<LogIn size={20} /> Sign in to Save
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue