R: Remove unused ref

This commit is contained in:
Ivan 2024-12-06 10:42:01 +03:00
parent 09cfb4f5e5
commit 02fee878d1

View File

@ -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<ModalProps>) {
const ref = useRef(null);
useEscapeKey(hideWindow);
const handleCancel = () => {
@ -103,7 +101,6 @@ function Modal({
onClick={hideWindow}
/>
<motion.div
ref={ref}
className={clsx(
'z-modal',
'absolute bottom-1/2 left-1/2 -translate-x-1/2 translate-y-1/2',