Skip to content

Commit 50b2389

Browse files
Samuel  TranSamuel  Tran
authored andcommitted
Migrated actioncontainer.tsx to typescript
1 parent a9d01dc commit 50b2389

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/app/components/Action.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ interface ActionProps {
2020
displayName: string;
2121
componentName: string;
2222
componentData: { actualDuration: number } | undefined;
23+
routePath: any;
2324
state?: Record<string, unknown>;
2425
viewIndex: number;
2526
isCurrIndex: boolean;

src/app/containers/ActionContainer.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @ts-nocheck
1+
/* eslint-disable max-len */
22
import React, { useEffect, useState } from 'react';
33

44
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
@@ -34,7 +34,10 @@ function ActionContainer(props): JSX.Element {
3434

3535
// function to traverse state from hierarchy and also getting information on display name and component name
3636
const displayArray = (obj: {
37-
stateSnapshot: { children: any[] };
37+
stateSnapshot: {
38+
route: any,
39+
children: any[]
40+
};
3841
name: number;
3942
branch: number;
4043
index: number;
@@ -97,6 +100,7 @@ function ActionContainer(props): JSX.Element {
97100
actionsArr = hierarchyArr.map(
98101
(
99102
snapshot: {
103+
routePath: any;
100104
state?: Record<string, unknown>;
101105
index: number;
102106
displayName: string;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"forceConsistentCasingInFileNames": true,
1919
},
2020
"include": ["./src/app", "./src/backend", "./src/extension", "./jest-setup.ts", "./global.d.ts"],
21-
"exclude": ["./src/app/__tests__", "./src/backend/__tests__"],
21+
"exclude": ["./src/app/__tests__", "./src/backend/__tests__", "node_modules"],
2222
"typeDocOptions": {
2323
"mode": "file",
2424
"out": "docs"

0 commit comments

Comments
 (0)