Skip to content

Commit 6ee75ad

Browse files
styling prov/con container
1 parent 161bd5f commit 6ee75ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/app/containers/ProvConContainer.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { width } from '@mui/system';
1+
import { color, width } from '@mui/system';
22
import React, {useState} from 'react';
33
import { 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
);

0 commit comments

Comments
 (0)