From 2655ea8523e499045a4bbbdfffdcaaf9355e7c50 Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Fri, 21 Jul 2023 07:17:31 -0700 Subject: [PATCH] UIDRefactor 6/n Move tree into folder Summary: preparing to split this up a bit Reviewed By: lblasa Differential Revision: D47548840 fbshipit-source-id: 907b9cd6a7a044e4aad97f9755fd9b43b81768f1 --- .../plugins/public/ui-debugger/components/main.tsx | 2 +- .../ui-debugger/components/{ => tree}/Tree.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) rename desktop/plugins/public/ui-debugger/components/{ => tree}/Tree.tsx (99%) diff --git a/desktop/plugins/public/ui-debugger/components/main.tsx b/desktop/plugins/public/ui-debugger/components/main.tsx index 9e29cd552..c06e6f6ae 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 {Button, Spin} from 'antd'; import {QueryClientProvider} from 'react-query'; -import {Tree2} from './Tree'; +import {Tree2} from './tree/Tree'; import {StreamInterceptorErrorView} from './StreamInterceptorErrorView'; import {queryClient} from '../utils/reactQuery'; import {FrameworkEventsTable} from './FrameworkEventsTable'; diff --git a/desktop/plugins/public/ui-debugger/components/Tree.tsx b/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx similarity index 99% rename from desktop/plugins/public/ui-debugger/components/Tree.tsx rename to desktop/plugins/public/ui-debugger/components/tree/Tree.tsx index 1154036ac..4f45c8ccd 100644 --- a/desktop/plugins/public/ui-debugger/components/Tree.tsx +++ b/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx @@ -12,8 +12,8 @@ import { FrameworkEventType, Id, ClientNode, -} from '../ClientTypes'; -import {OnSelectNode, ViewMode} from '../DesktopTypes'; +} from '../../ClientTypes'; +import {OnSelectNode, ViewMode} from '../../DesktopTypes'; import React, { ReactNode, Ref, @@ -34,19 +34,19 @@ import { usePlugin, useValue, } from 'flipper-plugin'; -import {plugin} from '../index'; +import {plugin} from '../../index'; import {Glyph} from 'flipper'; import {head, last} from 'lodash'; import {reverse} from 'lodash/fp'; import {Badge, Dropdown, Menu, Typography} from 'antd'; -import {UIDebuggerMenuItem} from './util/UIDebuggerMenuItem'; -import {tracker} from '../utils/tracker'; +import {UIDebuggerMenuItem} from '../util/UIDebuggerMenuItem'; +import {tracker} from '../../utils/tracker'; import {useVirtualizer, Virtualizer} from '@tanstack/react-virtual'; import { BigGrepContextMenuItems, IDEContextMenuItems, -} from './fb-stubs/IDEContextMenu'; +} from '../fb-stubs/IDEContextMenu'; import { CopyOutlined, FullscreenExitOutlined,