Skip to content

Commit 2fbe706

Browse files
committed
moving into ui branch
1 parent a72975b commit 2fbe706

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/app/components/FrontendTypes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export interface TreeProps {
3232
state?: string | object;
3333
stateSnaphot?: object;
3434
children?: any[];
35+
snapshots?:[];
36+
currLocation?:object;
37+
38+
3539
};
3640
}
3741

src/app/components/StateRoute/Tree.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ const Tree = (props: TreeProps) => {
4040
useEffect(() => {
4141
dispatch(setCurrentTabInApp('tree'));
4242
}, []);
43-
43+
console.log(snapshots);
44+
console.log(currLocation);
4445
return (
4546
<>
4647
{snapshot && (
4748
<JSONTree
48-
data={snapshots[currLocation['index']] || snapshot}
49-
// data={snapshot}
49+
data={snapshots[currLocation.index] || snapshot}
5050
theme={{ extend: colors, tree: () => ({ className: 'json-tree' }) }}
5151
shouldExpandNode={() => true}
5252
getItemString={getItemString}

src/app/components/WebMetrics.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ const radialGraph = (props) => {
8888
},
8989
};
9090

91-
// This updates currentTabInApp which is used to determine what tutorial to display (depending on the active tab within Reactime)
92-
// Code is commented out because it interferes with the testing suite
9391
const [store, dispatch] = useStoreContext();
9492
useEffect(() => {
9593
dispatch(setCurrentTabInApp('webmetrics'));

0 commit comments

Comments
 (0)