Rename raw attributes flag to rawEnabled
Summary: ^ IMHO, this is a better name. ... and secretly make it enabled by default Reviewed By: LukeDefeo Differential Revision: D41495973 fbshipit-source-id: f287a4beadb70587ff43ac896213a20746dd8c22
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ef64abb495
commit
c23f62219b
@@ -210,13 +210,13 @@ type Props = {
|
|||||||
node: UINode;
|
node: UINode;
|
||||||
metadata: Map<MetadataId, Metadata>;
|
metadata: Map<MetadataId, Metadata>;
|
||||||
mode: InspectorMode;
|
mode: InspectorMode;
|
||||||
rawDisplayEnabled?: boolean;
|
rawEnabled?: boolean;
|
||||||
};
|
};
|
||||||
export const AttributesInspector: React.FC<Props> = ({
|
export const AttributesInspector: React.FC<Props> = ({
|
||||||
node,
|
node,
|
||||||
metadata,
|
metadata,
|
||||||
mode,
|
mode,
|
||||||
rawDisplayEnabled = false,
|
rawEnabled = true,
|
||||||
}) => {
|
}) => {
|
||||||
const keys = Object.keys(node.attributes);
|
const keys = Object.keys(node.attributes);
|
||||||
const sections = keys
|
const sections = keys
|
||||||
@@ -248,7 +248,7 @@ export const AttributesInspector: React.FC<Props> = ({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{...sections}
|
{...sections}
|
||||||
{rawDisplayEnabled && (
|
{rawEnabled && (
|
||||||
<Panel key="Raw" title="Raw Data" collapsed>
|
<Panel key="Raw" title="Raw Data" collapsed>
|
||||||
<DataInspector data={transform(node.attributes, metadata)} />
|
<DataInspector data={transform(node.attributes, metadata)} />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|||||||
Reference in New Issue
Block a user