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 */
14//@ts -nocheck
25import * as React from 'react' ;
36import { Component } from 'react' ;
@@ -7,18 +10,22 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
710import { faQuestion } from '@fortawesome/free-solid-svg-icons' ;
811import { tutorialSaveSeriesToggle , setCurrentTabInApp } from '../actions/actions' ;
912
10- type tutorialProps = Record < string , unknown >
13+ interface tutorialProps {
14+ dispatch : unknown ;
15+ currentTabInApp : unknown ;
16+ }
1117
1218// This is the tutorial displayed when the "How to use" button is clicked
1319// 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 > {
1521 constructor ( props :tutorialProps ) {
1622 super ( props ) ;
1723 this . state = {
1824 stepsEnabled : false ,
1925 } ;
2026 }
2127
28+ public props : tutorialProps ;
2229 render ( ) : JSX . Element {
2330 const { currentTabInApp, dispatch } = this . props ;
2431
@@ -247,5 +254,3 @@ class Tutorial extends React.Component<tutorialProps> {
247254 ) ;
248255 }
249256}
250-
251- export default Tutorial ;
You can’t perform that action at this time.
0 commit comments