File tree
Expand file treeCollapse file tree1 file changed
+7
-2
lines changed web-app/src/containers/Tutorial/components
Expand file treeCollapse file tree1 file changed
+7
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -28,7 +28,7 @@ interface Props {
|
28 | 28 | }
|
29 | 29 |
|
30 | 30 | const Continue = (props: Props) => {
|
31 |
| -const [modalState, setModalState] = React.useState<'closed' | 'open'>(props.defaultOpen ? 'open' : 'closed') |
| 31 | +const [modalState, setModalState] = React.useState<'init' | 'closed' | 'open'>(props.defaultOpen ? 'open' : 'closed') |
32 | 32 |
|
33 | 33 | const onClose = () => {
|
34 | 34 | setModalState('closed')
|
@@ -47,11 +47,16 @@ const Continue = (props: Props) => {
|
47 | 47 |
|
48 | 48 | return (
|
49 | 49 | <>
|
50 |
| -{modalState === 'closed' ? ( |
| 50 | +{modalState === 'init' ? ( |
51 | 51 | <Button type="primary" size="medium" onClick={onOpen}>
|
52 | 52 | Continue
|
53 | 53 | </Button>
|
54 | 54 | ) : null}
|
| 55 | +{modalState === 'closed' ? ( |
| 56 | +<Button type="primary" size="medium" onClick={onContinue}> |
| 57 | +Continue |
| 58 | +</Button> |
| 59 | +) : null} |
55 | 60 | <Dialog
|
56 | 61 | title={isComplete ? 'Tutorial Complete!' : 'Level Complete!'}
|
57 | 62 | visible={modalState === 'open'}
|
|
You can’t perform that action at this time.
0 commit comments