We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents0ca7efc +0c71db0 commit6bc94f0Copy full SHA for 6bc94f0
web-app/src/containers/Tutorial/components/Continue.tsx
@@ -28,7 +28,7 @@ interface Props {
28
}
29
30
constContinue=(props:Props)=>{
31
-const[modalState,setModalState]=React.useState<'closed'|'open'>(props.defaultOpen ?'open' :'closed')
+const[modalState,setModalState]=React.useState<'init'|'closed'|'open'>(props.defaultOpen ?'open' :'closed')
32
33
constonClose=()=>{
34
setModalState('closed')
@@ -47,11 +47,16 @@ const Continue = (props: Props) => {
47
48
return(
49
<>
50
-{modalState==='closed' ?(
+{modalState==='init' ?(
51
<Buttontype="primary"size="medium"onClick={onOpen}>
52
Continue
53
</Button>
54
) :null}
55
+{modalState==='closed' ?(
56
+<Buttontype="primary"size="medium"onClick={onContinue}>
57
+ Continue
58
+</Button>
59
+) :null}
60
<Dialog
61
title={isComplete ?'Tutorial Complete!' :'Level Complete!'}
62
visible={modalState==='open'}