Skip to content

Commit 47e6de0

Browse files
committed
removed interfaces to import typescript from FrontendTypes
1 parent 7ade5ad commit 47e6de0

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

src/app/components/StateRoute/PerformanceVisx/BarGraphComparisonActions.tsx

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,7 @@ import MenuItem from '@material-ui/core/MenuItem';
1515
import FormControl from '@material-ui/core/FormControl';
1616
import { deleteSeries, setCurrentTabInApp } from '../../../actions/actions';
1717
import { useStoreContext } from '../../../store';
18-
19-
/* TYPESCRIPT */
20-
21-
interface margin {
22-
top: number;
23-
right: number;
24-
bottom: number;
25-
left: number;
26-
}
27-
28-
interface snapshot {
29-
snapshotId?: string;
30-
children: [];
31-
componentData: any;
32-
name: string;
33-
state: string;
34-
}
35-
36-
// On-hover data.
37-
interface TooltipData {
38-
bar: SeriesPoint<snapshot>;
39-
key: string;
40-
index: number;
41-
height: number;
42-
width: number;
43-
x: number;
44-
y: number;
45-
color: string;
46-
}
18+
import { TooltipData, margin } from '../../FrontendTypes';
4719

4820
/* DEFAULTS */
4921
const margin = {
@@ -343,7 +315,7 @@ const BarGraphComparisonActions = props => {
343315
</div>
344316
<div>
345317
{
346-
`${tooltipData.bar.data[tooltipData.key]} ms`
318+
`${tooltipData.bar.data[tooltipData.key]} ms`
347319
}
348320
</div>
349321
<div>

0 commit comments

Comments
 (0)