From 91a18e2338f63569630ec156c3bddf63fdabbf18 Mon Sep 17 00:00:00 2001 From: 1ilit Date: Tue, 19 Sep 2023 15:47:08 +0300 Subject: [PATCH] add text input into rects --- src/components/rect.jsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/rect.jsx b/src/components/rect.jsx index 45c2bfa..f8b86ac 100644 --- a/src/components/rect.jsx +++ b/src/components/rect.jsx @@ -12,14 +12,13 @@ const Rect = (props) => { style={{ fill: "blue", cursor: "move" }} onMouseDown={props.onMouseDown} /> - - {props.label} - + + +
e.preventDefault()}> + +
+ +
); };