From dacc6ebb16e66266967d3d798af18cc10bdb8ee1 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Fri, 3 Feb 2023 07:43:00 -0800 Subject: [PATCH] Feedback request Summary: ^ Only for iOS this time. Note: passing the device OS freely to the main component as this is just temporary code that will be deleted soon. Reviewed By: antonk52 Differential Revision: D42990221 fbshipit-source-id: 41b4107caa6bf312191889af75afd28873f6eda5 --- desktop/plugins/public/ui-debugger/components/main.tsx | 3 ++- desktop/plugins/public/ui-debugger/index.tsx | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/desktop/plugins/public/ui-debugger/components/main.tsx b/desktop/plugins/public/ui-debugger/components/main.tsx index 2e6604dbd..07674a695 100644 --- a/desktop/plugins/public/ui-debugger/components/main.tsx +++ b/desktop/plugins/public/ui-debugger/components/main.tsx @@ -25,7 +25,7 @@ import {Inspector} from './sidebar/Inspector'; import {Controls} from './Controls'; import {Spin} from 'antd'; import {QueryClientProvider} from 'react-query'; - +import FeedbackRequest from './fb-stubs/feedback'; import {Tree2} from './Tree'; export function Component() { @@ -49,6 +49,7 @@ export function Component() { return ( + {instance.device === 'iOS' ? : null} diff --git a/desktop/plugins/public/ui-debugger/index.tsx b/desktop/plugins/public/ui-debugger/index.tsx index 0c33a5d4e..16a1f66ab 100644 --- a/desktop/plugins/public/ui-debugger/index.tsx +++ b/desktop/plugins/public/ui-debugger/index.tsx @@ -45,6 +45,8 @@ export function plugin(client: PluginClient) { const rootId = createState(undefined); const metadata = createState>(new Map()); + const device = client.device.os; + client.onMessage('init', (event) => { rootId.set(event.rootId); }); @@ -179,6 +181,7 @@ export function plugin(client: PluginClient) { perfEvents, setPlayPause, queryClient, + device, }; }