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';
1111import { tutorialSaveSeriesToggle , setCurrentTabInApp } from '../actions/actions' ;
1212
1313interface tutorialProps {
14- dispatch : unknown ;
15- currentTabInApp : unknown ;
14+ dispatch : ( object ) => void ;
15+ currentTabInApp : string ;
16+ }
17+
18+ interface tutorialState {
19+ stepsEnabled : boolean ;
1620}
1721
1822// This is the tutorial displayed when the "How to use" button is clicked
1923// 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 > {
2125 constructor ( props :tutorialProps ) {
2226 super ( props ) ;
2327 this . state = {
Original file line number Diff line number Diff line change 1010import React , { Component } from 'react' ;
1111import { render } from 'react-dom' ;
1212import linkFiberStart from '../linkFiber' ;
13- // import 'expect-puppeteer';
14- import puppeteer from 'puppeteer' ;
1513
14+ const puppeteer = require ( 'puppeteer' ) ;
1615const SERVER = require ( '../puppeteerServer' ) ;
1716
1817// Apple uses port 5000 for Air Play.
@@ -24,15 +23,6 @@ let snapShot;
2423
2524let browser ;
2625let 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- // }
3626
3727class App extends Component {
3828 state : { foo : string ; } ;
You can’t perform that action at this time.
0 commit comments