remove dublicate circle
This commit is contained in:
@@ -32,7 +32,7 @@ const ObjectSettings = ({ selectedObject, onUpdate, onDelete }: ObjectSettingsPr
|
||||
|
||||
{selectedObject.type === "text" && <TextInstruction />}
|
||||
|
||||
{(selectedObject.type === "rectangle" || selectedObject.type === "circle") && (
|
||||
{selectedObject.type === "rectangle" && (
|
||||
<ShapeSettings selectedObject={selectedObject} onUpdate={onUpdate} />
|
||||
)}
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
LinkInput,
|
||||
SelectInstruction,
|
||||
RectangleInstruction,
|
||||
CircleInstruction,
|
||||
TextInstruction,
|
||||
LineInstruction,
|
||||
ArrowInstruction,
|
||||
@@ -67,7 +66,6 @@ const ToolInstructions = ({ tool }: ToolInstructionsProps) => {
|
||||
const simpleInstructions: Partial<Record<ToolType, React.ReactElement>> = {
|
||||
select: <SelectInstruction />,
|
||||
rectangle: <RectangleInstruction />,
|
||||
circle: <CircleInstruction />,
|
||||
text: <TextInstruction />,
|
||||
line: <LineInstruction />,
|
||||
arrow: <ArrowInstruction />,
|
||||
|
||||
@@ -17,7 +17,6 @@ import type { ToolType } from "../../store/editorStore";
|
||||
const tools: Array<{ icon: (color: string, variant?: "Bold" | "Outline" | "Broken" | "Bulk" | "Linear" | "TwoTone") => React.ReactNode; tool: ToolType; label: string }> = [
|
||||
{ icon: (color, variant) => <MouseSquare size={20} color={color} variant={variant} />, tool: "select", label: "انتخاب" },
|
||||
{ icon: (color, variant) => <Shapes size={20} color={color} variant={variant} />, tool: "rectangle", label: "مستطیل" },
|
||||
{ icon: (color, variant) => <Shapes size={20} color={color} variant={variant} />, tool: "circle", label: "دایره" },
|
||||
{ icon: (color, variant) => <Text size={20} color={color} variant={variant} />, tool: "text", label: "متن" },
|
||||
{ icon: (color, variant) => <Minus size={20} color={color} variant={variant} />, tool: "line", label: "خط" },
|
||||
{ icon: (color, variant) => <Grid8 size={20} color={color} variant={variant} />, tool: "grid", label: "گرید" },
|
||||
|
||||
Reference in New Issue
Block a user