File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,17 @@ import { faQuestion } from '@fortawesome/free-solid-svg-icons';
11
11
import { tutorialSaveSeriesToggle , setCurrentTabInApp } from '../actions/actions' ;
12
12
13
13
interface tutorialProps {
14
- dispatch : unknown ;
15
- currentTabInApp : unknown ;
14
+ dispatch : ( object ) => void ;
15
+ currentTabInApp : string ;
16
+ }
17
+
18
+ interface tutorialState {
19
+ stepsEnabled : boolean ;
16
20
}
17
21
18
22
// This is the tutorial displayed when the "How to use" button is clicked
19
23
// This needs to be a class component to be compatible with updateStepElement from intro.js
20
- export default class Tutorial extends React . Component < tutorialProps > {
24
+ export default class Tutorial extends React . Component < tutorialProps , tutorialState > {
21
25
constructor ( props :tutorialProps ) {
22
26
super ( props ) ;
23
27
this . state = {
Original file line number Diff line number Diff line change 10
10
import React , { Component } from 'react' ;
11
11
import { render } from 'react-dom' ;
12
12
import linkFiberStart from '../linkFiber' ;
13
- // import 'expect-puppeteer';
14
- import puppeteer from 'puppeteer' ;
15
13
14
+ const puppeteer = require ( 'puppeteer' ) ;
16
15
const SERVER = require ( '../puppeteerServer' ) ;
17
16
18
17
// Apple uses port 5000 for Air Play.
@@ -24,15 +23,6 @@ let snapShot;
24
23
25
24
let browser ;
26
25
let page ;
27
- // interface Component {
28
- // render(): any;
29
- // context: any;
30
- // setState: any;
31
- // forceUpdate: any;
32
- // props: any;
33
- // state: any;
34
- // refs: any;
35
- // }
36
26
37
27
class App extends Component {
38
28
state : { foo : string ; } ;
You can’t perform that action at this time.
0 commit comments