5
5
/* eslint-disable @typescript-eslint/no-var-requires */
6
6
/* eslint-disable max-len */
7
7
/* eslint-disable object-curly-newline */
8
- import React , { useState , useEffect } from 'react' ;
8
+ import React from 'react' ;
9
9
import {
10
10
MemoryRouter as Router ,
11
11
Route ,
12
12
NavLink ,
13
13
Switch ,
14
- useLocation ,
15
14
} from 'react-router-dom' ;
16
15
import { ParentSize } from '@visx/responsive' ;
17
16
import Tree from './Tree' ;
@@ -24,7 +23,7 @@ import WebMetrics from './WebMetrics';
24
23
const History = require ( './History' ) . default ;
25
24
26
25
const NO_STATE_MSG = 'No state change detected. Trigger an event to change state' ;
27
- // eslint-disable-next-line react/prop-types
26
+
28
27
29
28
export interface StateRouteProps {
30
29
snapshot : {
@@ -79,7 +78,6 @@ const StateRoute = (props: StateRouteProps) => {
79
78
sliderIndex = { sliderIndex }
80
79
viewIndex = { viewIndex }
81
80
currLocation = { currLocation }
82
- // added snapshots 11/4 Rob
83
81
snapshots = { snapshots }
84
82
/>
85
83
) }
@@ -99,8 +97,8 @@ const StateRoute = (props: StateRouteProps) => {
99
97
return < div className = "noState" > { NO_STATE_MSG } </ div > ;
100
98
} ;
101
99
const renderWebMetrics = ( ) => {
102
- let LCPColor ; let FIDColor ; let FCPColor ; let
103
- TTFBColor ;
100
+ let LCPColor : String ; let FIDColor : String ; let FCPColor : String ; let
101
+ TTFBColor: String ;
104
102
105
103
if ( webMetrics . LCP <= 2000 ) LCPColor = '#0bce6b' ;
106
104
if ( webMetrics . LCP > 2000 && webMetrics . LCP < 4000 ) LCPColor = '#E56543' ;
0 commit comments