From 0c71db0bae55a603e1ef69cbe76e156579074d40 Mon Sep 17 00:00:00 2001 From: shmck Date: Mon, 10 Aug 2020 19:21:49 -0700 Subject: [PATCH] closes #442. Consistent continue Signed-off-by: shmck --- web-app/src/containers/Tutorial/components/Continue.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web-app/src/containers/Tutorial/components/Continue.tsx b/web-app/src/containers/Tutorial/components/Continue.tsx index cca2904d..c8fda65a 100644 --- a/web-app/src/containers/Tutorial/components/Continue.tsx +++ b/web-app/src/containers/Tutorial/components/Continue.tsx @@ -28,7 +28,7 @@ interface Props { } const Continue = (props: Props) => { - const [modalState, setModalState] = React.useState<'closed' | 'open'>(props.defaultOpen ? 'open' : 'closed') + const [modalState, setModalState] = React.useState<'init' | 'closed' | 'open'>(props.defaultOpen ? 'open' : 'closed') const onClose = () => { setModalState('closed') @@ -47,11 +47,16 @@ const Continue = (props: Props) => { return ( <> - {modalState === 'closed' ? ( + {modalState === 'init' ? ( ) : null} + {modalState === 'closed' ? ( + + ) : null}