File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-disable react/sort-comp */
2
+ /* eslint-disable lines-between-class-members */
3
+ /* eslint-disable react/static-property-placement */
1
4
//@ts -nocheck
2
5
import * as React from 'react' ;
3
6
import { Component } from 'react' ;
@@ -7,18 +10,22 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
7
10
import { faQuestion } from '@fortawesome/free-solid-svg-icons' ;
8
11
import { tutorialSaveSeriesToggle , setCurrentTabInApp } from '../actions/actions' ;
9
12
10
- type tutorialProps = Record < string , unknown >
13
+ interface tutorialProps {
14
+ dispatch : unknown ;
15
+ currentTabInApp : unknown ;
16
+ }
11
17
12
18
// This is the tutorial displayed when the "How to use" button is clicked
13
19
// This needs to be a class component to be compatible with updateStepElement from intro.js
14
- class Tutorial extends React . Component < tutorialProps > {
20
+ export default class Tutorial extends React . Component < tutorialProps > {
15
21
constructor ( props :tutorialProps ) {
16
22
super ( props ) ;
17
23
this . state = {
18
24
stepsEnabled : false ,
19
25
} ;
20
26
}
21
27
28
+ public props : tutorialProps ;
22
29
render ( ) : JSX . Element {
23
30
const { currentTabInApp, dispatch } = this . props ;
24
31
@@ -247,5 +254,3 @@ class Tutorial extends React.Component<tutorialProps> {
247
254
) ;
248
255
}
249
256
}
250
-
251
- export default Tutorial ;
You can’t perform that action at this time.
0 commit comments