File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
components/StateRoute/WebMetrics Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { useDispatch } from 'react-redux';
1010
1111const radialGraph = ( props ) => {
1212 const dispatch = useDispatch ( ) ;
13+ console . log ( 'props' , props ) ;
1314 const state = {
1415 series : [ props . series ] , // series appears to be the scale at which data is displayed based on the type of webMetrics measured.
1516 options : {
@@ -100,15 +101,9 @@ const radialGraph = (props) => {
100101 dispatch ( setCurrentTabInApp ( 'webmetrics' ) ) ; // dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'webmetrics' to facilitate render.
101102 } , [ ] ) ;
102103
103- const optionsCursorTrueWithMargin : OptionsCursorTrueWithMargin = {
104- followCursor : true ,
105- shiftX : 20 ,
106- shiftY : 0 ,
107- } ;
108-
109104 return (
110105 < div className = 'metric' >
111- < ReactHover options = { optionsCursorTrueWithMargin } >
106+ < ReactHover >
112107 < Trigger type = 'trigger' >
113108 < div id = 'chart' className = 'chart-container' >
114109 < Charts
@@ -121,7 +116,7 @@ const radialGraph = (props) => {
121116 </ div >
122117 </ Trigger >
123118 < Hover type = 'hover' >
124- < div className = 'metric-tooltip' id = ' hover-box'>
119+ < div className = 'hover-box' >
125120 < p >
126121 < strong > { props . name } </ strong >
127122 </ p >
Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ const ProvConContainer = (props: ProvConContainerProps): JSX.Element => {
129129 // Only return the node if it has at least one non-empty property
130130 return isEmptyObject ( filteredNode ) ? null : filteredNode ;
131131 } ;
132+
132133 const filteredProviders = filterComponentProperties ( contextProvidersOnly ) ;
133- console . log ( 'filtered' , filteredProviders ) ;
134134
135135 const parseStringifiedValues = ( obj ) => {
136136 if ( ! obj || typeof obj !== 'object' ) return obj ;
Original file line number Diff line number Diff line change 142142 align-items : center ;
143143}
144144
145- # hover-box {
145+ . hover-box {
146146 max-width : 250px ;
147147 background-color : #51565e ;
148148 border-radius : 8px ;
149149 color : white ;
150+ padding : 2px 8px ;
151+ line-height : 16px ;
150152}
151153
152154/* Tree styling */
You can’t perform that action at this time.
0 commit comments