From fce6f310068227a4ce35affd96ddfc0c060d559d Mon Sep 17 00:00:00 2001 From: Ducky Date: Tue, 3 Sep 2024 19:20:55 +0100 Subject: [PATCH] Zio Blue: revert d449fc1cedf98c8a7530f3849e0a35301b09d758. --- src/view/com/auth/LoggedOut.tsx | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/view/com/auth/LoggedOut.tsx b/src/view/com/auth/LoggedOut.tsx index afba9623..cc572380 100644 --- a/src/view/com/auth/LoggedOut.tsx +++ b/src/view/com/auth/LoggedOut.tsx @@ -24,6 +24,7 @@ enum ScreenState { S_LoginOrCreateAccount, S_Login, S_CreateAccount, + S_StarterPack, } export {ScreenState as LoggedOutScreenState} @@ -36,6 +37,8 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) { const [screenState, setScreenState] = React.useState(() => { if (requestedAccountSwitchTo === 'new') { return ScreenState.S_CreateAccount + } else if (requestedAccountSwitchTo === 'starterpack') { + return ScreenState.S_StarterPack } else if (requestedAccountSwitchTo != null) { return ScreenState.S_Login } else { @@ -59,7 +62,34 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) { return ( - {screenState === ScreenState.S_LoginOrCreateAccount ? ( + {onDismiss && screenState === ScreenState.S_LoginOrCreateAccount ? ( + + + + ) : null} + + {screenState === ScreenState.S_StarterPack ? ( + + ) : screenState === ScreenState.S_LoginOrCreateAccount ? ( { setScreenState(ScreenState.S_Login)