Skip to content

Commit 79ed892

Browse files
Samuel  TranSamuel  Tran
authored andcommitted
Fixed buttons to have props that match the render when called in buttonscontainer. disabled some eslint problems
1 parent 50b2389 commit 79ed892

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/app/components/Tutorial.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* eslint-disable react/sort-comp */
2+
/* eslint-disable lines-between-class-members */
3+
/* eslint-disable react/static-property-placement */
14
//@ts-nocheck
25
import * as React from 'react';
36
import { Component } from 'react';
@@ -7,18 +10,22 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
710
import { faQuestion } from '@fortawesome/free-solid-svg-icons';
811
import { 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;

0 commit comments

Comments
 (0)