Skip to content

Commit f28c191

Browse files
Samuel  TranSamuel  Tran
authored andcommitted
Added class variables to tutorial class to present as a viable JSX component. Added message to fix for future iterations
changes required tutorial.tsx to import to pass diff.test.tsx
1 parent 79ea4ca commit f28c191

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/app/components/Tutorial.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export default class Tutorial extends React.Component<tutorialProps, tutorialSta
3030
stepsEnabled: false,
3131
};
3232
}
33+
public context: any;
34+
public setState: any;
35+
public forceUpdate: any;
36+
public props: any;
37+
public state: any;
38+
public refs: any;
3339

3440
render(): JSX.Element {
3541
const { currentTabInApp, dispatch } = this.props;

src/app/containers/ButtonsContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { importSnapshots, toggleMode, toggleSplit } from '../actions/actions';
1212
import { useStoreContext } from '../store';
1313

14-
const Tutorial = require('../components/Tutorial');
14+
import Tutorial from '../components/Tutorial';
1515

1616
function exportHandler(snapshots: []) {
1717
// create invisible download anchor link

0 commit comments

Comments
 (0)