From cdce22fdd66d437114abd2fcc21ff4d4629e3cc0 Mon Sep 17 00:00:00 2001 From: 1ilit Date: Tue, 19 Sep 2023 15:47:14 +0300 Subject: [PATCH] sum stuf --- src/App.js | 5 ++--- src/components/draw_area.jsx | 31 +++++++++++++++++++++++++++++++ src/components/rect.jsx | 3 +-- 3 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/App.js b/src/App.js index 66c857e..add60c0 100644 --- a/src/App.js +++ b/src/App.js @@ -7,9 +7,8 @@ function App() { <> - - } /> - } /> + } /> + } /> diff --git a/src/components/draw_area.jsx b/src/components/draw_area.jsx index 31d5fa6..94a08e3 100644 --- a/src/components/draw_area.jsx +++ b/src/components/draw_area.jsx @@ -154,6 +154,37 @@ export default function Canvas(props) { onMouseUp={handleMouseUp} style={{ width: "100%", height: "100%", cursor: cursor }} > + + + + + + + + + + + {props.rectangles.map((rectangle) => ( { }} >
{props.label}
e.preventDefault()}>