Panel for Raw Details
Summary: ^ Reviewed By: antonk52 Differential Revision: D47915946 fbshipit-source-id: 3455da38d8862d6a2faff34fa7324da44c5acc08
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1de033c157
commit
f63c749e0e
@@ -7,7 +7,7 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {Layout} from '../ui';
|
import {Layout, Panel} from '../ui';
|
||||||
import React, {CSSProperties, useState} from 'react';
|
import React, {CSSProperties, useState} from 'react';
|
||||||
import {
|
import {
|
||||||
createDataSource,
|
createDataSource,
|
||||||
@@ -139,7 +139,9 @@ function Sidebar({selection}: {selection: undefined | ConnectionRecordEntry}) {
|
|||||||
return (
|
return (
|
||||||
<Layout.ScrollContainer pad>
|
<Layout.ScrollContainer pad>
|
||||||
{selection != null ? (
|
{selection != null ? (
|
||||||
<DataInspector data={selection} expandRoot />
|
<Panel key="Raw" heading="Raw Details">
|
||||||
|
<DataInspector data={selection} />
|
||||||
|
</Panel>
|
||||||
) : (
|
) : (
|
||||||
<Placeholder grow pad="large">
|
<Placeholder grow pad="large">
|
||||||
Select an entry to visualize details
|
Select an entry to visualize details
|
||||||
|
|||||||
Reference in New Issue
Block a user