File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- import { width } from '@mui/system' ;
1+ import { color , width } from '@mui/system' ;
22import React , { useState } from 'react' ;
33import { ProvConContainerProps } from '../FrontendTypes' ;
44
@@ -118,17 +118,20 @@ const ProvConContainer = (props: ProvConContainerProps): JSX.Element => {
118118 cursor : "pointer" ,
119119 fontWeight : "bold" ,
120120 textDecoration : "underline" ,
121- color : isExpanded ? "green " : "blue " ,
121+ color : isExpanded ? "#1f2937 " : "#059669 " ,
122122 } }
123123 >
124124 { node . name }
125125 </ p >
126126
127127 { /* Render HookState if it exists */ }
128128 { isExpanded && node . componentData ?. hooksState && (
129+ < div >
130+ { /* <h1 style={{fontWeight: "bold"}}>State:</h1> */ }
129131 < p style = { { whiteSpace : "normal" , overflowWrap : "break-word" , padding : "20px" } } >
130132 State: { JSON . stringify ( node . componentData . hooksState ) }
131133 </ p >
134+ </ div >
132135 ) }
133136
134137 { /* Render Context Property if it exists */ }
@@ -155,7 +158,7 @@ const ProvConContainer = (props: ProvConContainerProps): JSX.Element => {
155158
156159
157160 return (
158- < div style = { { width : "300px" } } >
161+ < div style = { { width : "260px" } } >
159162 { renderNestedObject ( contextProvidersOnly ) }
160163 </ div >
161164 ) ;
You can’t perform that action at this time.
0 commit comments