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';
10
10
11
11
const radialGraph = ( props ) => {
12
12
const dispatch = useDispatch ( ) ;
13
+ console . log ( 'props' , props ) ;
13
14
const state = {
14
15
series : [ props . series ] , // series appears to be the scale at which data is displayed based on the type of webMetrics measured.
15
16
options : {
@@ -100,15 +101,9 @@ const radialGraph = (props) => {
100
101
dispatch ( setCurrentTabInApp ( 'webmetrics' ) ) ; // dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'webmetrics' to facilitate render.
101
102
} , [ ] ) ;
102
103
103
- const optionsCursorTrueWithMargin : OptionsCursorTrueWithMargin = {
104
- followCursor : true ,
105
- shiftX : 20 ,
106
- shiftY : 0 ,
107
- } ;
108
-
109
104
return (
110
105
< div className = 'metric' >
111
- < ReactHover options = { optionsCursorTrueWithMargin } >
106
+ < ReactHover >
112
107
< Trigger type = 'trigger' >
113
108
< div id = 'chart' className = 'chart-container' >
114
109
< Charts
@@ -121,7 +116,7 @@ const radialGraph = (props) => {
121
116
</ div >
122
117
</ Trigger >
123
118
< Hover type = 'hover' >
124
- < div className = 'metric-tooltip' id = ' hover-box'>
119
+ < div className = 'hover-box' >
125
120
< p >
126
121
< strong > { props . name } </ strong >
127
122
</ p >
Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ const ProvConContainer = (props: ProvConContainerProps): JSX.Element => {
129
129
// Only return the node if it has at least one non-empty property
130
130
return isEmptyObject ( filteredNode ) ? null : filteredNode ;
131
131
} ;
132
+
132
133
const filteredProviders = filterComponentProperties ( contextProvidersOnly ) ;
133
- console . log ( 'filtered' , filteredProviders ) ;
134
134
135
135
const parseStringifiedValues = ( obj ) => {
136
136
if ( ! obj || typeof obj !== 'object' ) return obj ;
Original file line number Diff line number Diff line change 142
142
align-items : center ;
143
143
}
144
144
145
- # hover-box {
145
+ . hover-box {
146
146
max-width : 250px ;
147
147
background-color : #51565e ;
148
148
border-radius : 8px ;
149
149
color : white ;
150
+ padding : 2px 8px ;
151
+ line-height : 16px ;
150
152
}
151
153
152
154
/* Tree styling */
You can’t perform that action at this time.
0 commit comments