From 16434644dcca705349a720838c15eafbe14056c7 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 4 Jul 2021 18:23:27 +0200 Subject: [PATCH] Removed more unused code from r3f --- packages/plugin-r3f/src/components/Editor.tsx | 10 ++--- .../components/elements/CompactModeSelect.tsx | 45 +------------------ .../src/components/elements/FormControl.tsx | 22 --------- .../src/components/elements/IdProvider.ts | 6 --- .../src/components/elements/Popover.tsx | 29 ------------ .../src/components/elements/PortalManager.tsx | 26 ----------- .../src/components/elements/Tooltip.tsx | 4 +- 7 files changed, 7 insertions(+), 135 deletions(-) delete mode 100644 packages/plugin-r3f/src/components/elements/FormControl.tsx delete mode 100644 packages/plugin-r3f/src/components/elements/IdProvider.ts delete mode 100644 packages/plugin-r3f/src/components/elements/Popover.tsx delete mode 100644 packages/plugin-r3f/src/components/elements/PortalManager.tsx diff --git a/packages/plugin-r3f/src/components/Editor.tsx b/packages/plugin-r3f/src/components/Editor.tsx index 2f434db..cbcadf4 100644 --- a/packages/plugin-r3f/src/components/Editor.tsx +++ b/packages/plugin-r3f/src/components/Editor.tsx @@ -11,8 +11,6 @@ import UI from './UI' import ProxyManager from './ProxyManager' import studio from '@theatre/studio' import {useVal} from '@theatre/dataverse-react' -import {IdProvider} from './elements/IdProvider' -import PortalManager from './elements/PortalManager' const EditorScene = () => { const orbitControlsRef = useRef() @@ -69,8 +67,8 @@ const Editor: VFC = () => { return (
- - + <> + <>
{
- - + +
) diff --git a/packages/plugin-r3f/src/components/elements/CompactModeSelect.tsx b/packages/plugin-r3f/src/components/elements/CompactModeSelect.tsx index 6a7621e..4827f62 100644 --- a/packages/plugin-r3f/src/components/elements/CompactModeSelect.tsx +++ b/packages/plugin-r3f/src/components/elements/CompactModeSelect.tsx @@ -1,10 +1,8 @@ -import type {ReactElement, ReactNode, VFC} from 'react' +import type {ReactElement, ReactNode} from 'react' import React from 'react' import type {IconType} from 'react-icons' import {Group, Button} from 'reakit' import {Tooltip, TooltipReference, useTooltipState} from './Tooltip' -import {usePopoverState, PopoverDisclosure, Popover} from './Popover' -import {FiChevronDown} from 'react-icons/all' interface OptionButtonProps