Fix inspector hidden state
This commit is contained in:
parent
dd3b4cc6be
commit
d927e138d0
1 changed files with 20 additions and 18 deletions
|
@ -158,9 +158,12 @@ export function GroupCallInspector({ client, groupCall, show }) {
|
||||||
return result;
|
return result;
|
||||||
}, [toDeviceEvents]);
|
}, [toDeviceEvents]);
|
||||||
|
|
||||||
|
if (!show) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Resizable enable={{ top: true }} defaultSize={{ height: 200 }}>
|
<Resizable enable={{ top: true }} defaultSize={{ height: 200 }}>
|
||||||
{show && (
|
|
||||||
<ReactJson
|
<ReactJson
|
||||||
theme="monokai"
|
theme="monokai"
|
||||||
src={{
|
src={{
|
||||||
|
@ -177,7 +180,6 @@ export function GroupCallInspector({ client, groupCall, show }) {
|
||||||
enableClipboard={false}
|
enableClipboard={false}
|
||||||
style={{ height: "100%", overflowY: "scroll" }}
|
style={{ height: "100%", overflowY: "scroll" }}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</Resizable>
|
</Resizable>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue