From 59cdc8386cf99b59746ae66cf7455e4978c3cda7 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Fri, 22 Jul 2022 21:27:06 +0100 Subject: [PATCH] replace image icon with radix icon (#843) --- .../components/Primitives/icons/ImageIcon.tsx | 21 ------------------- .../src/components/Primitives/icons/index.ts | 1 - .../components/ToolsPanel/PrimaryTools.tsx | 3 ++- 3 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 packages/tldraw/src/components/Primitives/icons/ImageIcon.tsx diff --git a/packages/tldraw/src/components/Primitives/icons/ImageIcon.tsx b/packages/tldraw/src/components/Primitives/icons/ImageIcon.tsx deleted file mode 100644 index 720e5b7ac..000000000 --- a/packages/tldraw/src/components/Primitives/icons/ImageIcon.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import * as React from 'react' - -export function ImageIcon() { - return ( - - - - ) -} diff --git a/packages/tldraw/src/components/Primitives/icons/index.ts b/packages/tldraw/src/components/Primitives/icons/index.ts index d24b89a5b..5909216f0 100644 --- a/packages/tldraw/src/components/Primitives/icons/index.ts +++ b/packages/tldraw/src/components/Primitives/icons/index.ts @@ -16,4 +16,3 @@ export * from './MultiplayerIcon' export * from './DiscordIcon' export * from './LineIcon' export * from './QuestionMarkIcon' -export * from './ImageIcon' diff --git a/packages/tldraw/src/components/ToolsPanel/PrimaryTools.tsx b/packages/tldraw/src/components/ToolsPanel/PrimaryTools.tsx index 601b22e73..7abb62b4e 100644 --- a/packages/tldraw/src/components/ToolsPanel/PrimaryTools.tsx +++ b/packages/tldraw/src/components/ToolsPanel/PrimaryTools.tsx @@ -3,6 +3,7 @@ import { useIntl } from 'react-intl' import { ArrowTopRightIcon, CursorArrowIcon, + ImageIcon, Pencil1Icon, Pencil2Icon, TextIcon, @@ -12,7 +13,7 @@ import { useTldrawApp } from '~hooks' import { ToolButtonWithTooltip } from '~components/Primitives/ToolButton' import { Panel } from '~components/Primitives/Panel' import { ShapesMenu } from './ShapesMenu' -import { EraserIcon, ImageIcon } from '~components/Primitives/icons' +import { EraserIcon } from '~components/Primitives/icons' const activeToolSelector = (s: TDSnapshot) => s.appState.activeTool const toolLockedSelector = (s: TDSnapshot) => s.appState.isToolLocked