Skip to content

Commit 3808a3d

Browse files
yuanjackie1jasnoo
authored andcommitted
Created InitialStateProps Interface and exported
1 parent 80a2254 commit 3808a3d

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/app/components/App.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@ import { MemoryRouter as Router } from 'react-router-dom';
33
import MainContainer from '../containers/MainContainer';
44
import { StoreContext } from '../store';
55
import mainReducer from '../reducers/mainReducer.js';
6-
6+
import { InitialStateProps } from '../components/FrontendTypes';
77
// currentTab is the current active tab within Google Chrome.
88
// This is used to decide what tab Reactime should be monitoring. This can be "locked"
99
// currentTabInApp is the current active tab within Reactime (Map, Performance, History, etc).
1010
// This is used to determine the proper tutorial to render when How To button is pressed.
1111

12-
const initialState: {
13-
port: null | number;
14-
currentTab: null | number;
15-
currentTitle: null | string;
16-
split: null | boolean;
17-
tabs: unknown;
18-
currentTabInApp: null | string;
19-
} = {
12+
const initialState: InitialStateProps = {
2013
port: null,
2114
currentTab: null,
2215
currentTitle: 'No Target',

0 commit comments

Comments
 (0)