Skip to content

Commit e7657cc

Browse files
authored
Merge pull request #15 from oslabs-beta/samtran/feature
Samtran/feature
2 parents a1ab6e5 + 9f8e1e0 commit e7657cc

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

src/app/components/Tutorial.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ import { faQuestion } from '@fortawesome/free-solid-svg-icons';
1111
import { tutorialSaveSeriesToggle, setCurrentTabInApp } from '../actions/actions';
1212

1313
interface 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 = {

src/backend/__tests__/linkFiber.test.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
import React, { Component } from 'react';
1111
import { render } from 'react-dom';
1212
import linkFiberStart from '../linkFiber';
13-
// import 'expect-puppeteer';
14-
import puppeteer from 'puppeteer';
1513

14+
const puppeteer = require('puppeteer');
1615
const SERVER = require('../puppeteerServer');
1716

1817
// Apple uses port 5000 for Air Play.
@@ -24,15 +23,6 @@ let snapShot;
2423

2524
let browser;
2625
let 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

3727
class App extends Component{
3828
state: { foo: string; };

0 commit comments

Comments
 (0)