From c23f62219b1c4517ec09a2361144dac9fdbca504 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Wed, 23 Nov 2022 08:31:13 -0800 Subject: [PATCH] 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 --- .../components/sidebar/inspector/AttributesInspector.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/plugins/public/ui-debugger/components/sidebar/inspector/AttributesInspector.tsx b/desktop/plugins/public/ui-debugger/components/sidebar/inspector/AttributesInspector.tsx index 6c2e077e6..5b9c96bcf 100644 --- a/desktop/plugins/public/ui-debugger/components/sidebar/inspector/AttributesInspector.tsx +++ b/desktop/plugins/public/ui-debugger/components/sidebar/inspector/AttributesInspector.tsx @@ -210,13 +210,13 @@ type Props = { node: UINode; metadata: Map; mode: InspectorMode; - rawDisplayEnabled?: boolean; + rawEnabled?: boolean; }; export const AttributesInspector: React.FC = ({ 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 = ({ return ( <> {...sections} - {rawDisplayEnabled && ( + {rawEnabled && (