From 02fee878d1d301014df20fff9bd342bd7853b6d5 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Fri, 6 Dec 2024 10:42:01 +0300 Subject: [PATCH] R: Remove unused ref --- rsconcept/frontend/src/components/ui/Modal.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/rsconcept/frontend/src/components/ui/Modal.tsx b/rsconcept/frontend/src/components/ui/Modal.tsx index d9f8a1c3..7c958068 100644 --- a/rsconcept/frontend/src/components/ui/Modal.tsx +++ b/rsconcept/frontend/src/components/ui/Modal.tsx @@ -2,7 +2,6 @@ import clsx from 'clsx'; import { motion } from 'framer-motion'; -import { useRef } from 'react'; import useEscapeKey from '@/hooks/useEscapeKey'; import { HelpTopic } from '@/models/miscellaneous'; @@ -79,7 +78,6 @@ function Modal({ hideHelpWhen, ...restProps }: React.PropsWithChildren) { - const ref = useRef(null); useEscapeKey(hideWindow); const handleCancel = () => { @@ -103,7 +101,6 @@ function Modal({ onClick={hideWindow} />