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:
Lorenzo Blasa
2022-11-23 08:31:13 -08:00
committed by Facebook GitHub Bot
parent ef64abb495
commit c23f62219b

View File

@@ -210,13 +210,13 @@ type Props = {
node: UINode;
metadata: Map<MetadataId, Metadata>;
mode: InspectorMode;
rawDisplayEnabled?: boolean;
rawEnabled?: boolean;
};
export const AttributesInspector: React.FC<Props> = ({
node,
metadata,
mode,
rawDisplayEnabled = false,
rawEnabled = true,
}) => {
const keys = Object.keys(node.attributes);
const sections = keys
@@ -248,7 +248,7 @@ export const AttributesInspector: React.FC<Props> = ({
return (
<>
{...sections}
{rawDisplayEnabled && (
{rawEnabled && (
<Panel key="Raw" title="Raw Data" collapsed>
<DataInspector data={transform(node.attributes, metadata)} />
</Panel>