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;
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user