From 6702e9861ccf2bae10e14e6403cc38a8874968e7 Mon Sep 17 00:00:00 2001 From: Rachel Braverman Date: Mon, 22 Jan 2024 15:05:14 +0200 Subject: [PATCH 1/2] The finish of the design (except for the font) is without style number 2 --- src/components/toolbar/LineDefinition.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/toolbar/LineDefinition.tsx b/src/components/toolbar/LineDefinition.tsx index 7148976..2b93c7a 100644 --- a/src/components/toolbar/LineDefinition.tsx +++ b/src/components/toolbar/LineDefinition.tsx @@ -39,7 +39,7 @@ const LineDefinition = () => { return ( )} From 4c7234fdf16a335a10b1e384531c2f678e1bcd04 Mon Sep 17 00:00:00 2001 From: Rachel Braverman Date: Mon, 22 Jan 2024 15:09:37 +0200 Subject: [PATCH 2/2] The finish of the design (except for the font) is without style_number 2 --- src/components/toolbar/LineDefinition.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/toolbar/LineDefinition.tsx b/src/components/toolbar/LineDefinition.tsx index 0bd2f78..f6b96a3 100644 --- a/src/components/toolbar/LineDefinition.tsx +++ b/src/components/toolbar/LineDefinition.tsx @@ -5,7 +5,6 @@ import { useNumbersLineContext } from "../../context/numbersLineContext"; import openMenu from "../../assets/icons/menuButtonOpen.svg"; import closeMenu from "../../assets/icons/menuButtonClose.svg"; - const LineDefinition = () => { const [isMenuOpen, setIsMenuOpen] = useState(false); const { setKind } = useNumbersLineContext(); @@ -13,7 +12,6 @@ const LineDefinition = () => { useEffect(() => { const handleOutsideClick = (event: any) => { - // Close the component if the click is outside the component if (wrapperRef.current && !wrapperRef.current.contains(event.target)) { setIsMenuOpen(false); } @@ -52,7 +50,6 @@ const LineDefinition = () => { {isMenuOpen && ( -