diff --git a/src/pages/editor/components/sidebar/ToolsBar.tsx b/src/pages/editor/components/sidebar/ToolsBar.tsx index 023d056..e01628e 100644 --- a/src/pages/editor/components/sidebar/ToolsBar.tsx +++ b/src/pages/editor/components/sidebar/ToolsBar.tsx @@ -4,13 +4,13 @@ import { Element, Gallery, Grid8, - Link, MouseSquare, Shapes, Sticker, Text, VideoSquare, Minus, + Link2, } from "iconsax-react"; import type { ToolType } from "../../store/editorStore"; @@ -20,7 +20,7 @@ const tools: Array<{ icon: (color: string, variant?: "Bold" | "Outline" | "Broke { icon: (color, variant) => , tool: "text", label: "متن" }, { icon: (color, variant) => , tool: "grid", label: "گرید" }, { icon: (color, variant) => , tool: "image", label: "تصویر" }, - { icon: (color, variant) => , tool: "link", label: "لینک" }, + { icon: (color, variant) => , tool: "link", label: "لینک" }, { icon: (color, variant) => , tool: "document", label: "سند" }, { icon: (color, variant) => , tool: "arrow", label: "پیکان" }, { icon: (color, variant) => , tool: "line", label: "خط" }, @@ -39,7 +39,7 @@ const ToolsBar = ({ tool, onToolClick }: ToolsBarProps) => { {tools.map((item, index) => { const isActive = tool === item.tool; const iconColor = "black"; - const iconVariant = isActive ? "Bold" : undefined; + const iconVariant: "Bold" | "Outline" | "Broken" | "Bulk" | "Linear" | "TwoTone" | undefined = isActive ? "Bold" : "Outline"; return (