From b33b7a953de7b4286adb5d09d1b3074d47f015ff Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sun, 4 Jan 2026 09:05:36 +0330 Subject: [PATCH] remove upload document --- src/pages/editor/components/sidebar/ToolInstructions.tsx | 5 ----- src/pages/editor/components/sidebar/ToolsBar.tsx | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/pages/editor/components/sidebar/ToolInstructions.tsx b/src/pages/editor/components/sidebar/ToolInstructions.tsx index 9a49d47..0b4939b 100644 --- a/src/pages/editor/components/sidebar/ToolInstructions.tsx +++ b/src/pages/editor/components/sidebar/ToolInstructions.tsx @@ -1,7 +1,6 @@ import { useEditorStore, type ToolType } from "@/pages/editor/store/editorStore"; import { ImageUpload, - DocumentUpload, VideoInput, LinkInput, SelectInstruction, @@ -51,10 +50,6 @@ const ToolInstructions = ({ tool }: ToolInstructionsProps) => { return ; } - if (tool === "document") { - return ; - } - if (tool === "video") { return ; } diff --git a/src/pages/editor/components/sidebar/ToolsBar.tsx b/src/pages/editor/components/sidebar/ToolsBar.tsx index 5b1c9be..b5cf36f 100644 --- a/src/pages/editor/components/sidebar/ToolsBar.tsx +++ b/src/pages/editor/components/sidebar/ToolsBar.tsx @@ -1,6 +1,5 @@ import { clx } from "@/helpers/utils"; import { - DocumentUpload, Element, Gallery, Grid8, @@ -22,7 +21,6 @@ const tools: Array<{ icon: (color: string, variant?: "Bold" | "Outline" | "Broke { icon: (color, variant) => , tool: "image", label: "تصویر" }, { icon: (color, variant) => , tool: "link", label: "لینک" }, { icon: (color, variant) => , tool: "video", label: "ویدیو" }, - { icon: (color, variant) => , tool: "document", label: "سند" }, { icon: (color, variant) => , tool: "arrow", label: "پیکان" }, { icon: (color, variant) => , tool: "line", label: "خط" }, { icon: (color, variant) => , tool: "sticker", label: "استیکر" },