R: Remove unused ref
Some checks failed
Frontend CI / build (22.x) (push) Has been cancelled

This commit is contained in:
Ivan 2024-12-06 10:42:27 +03:00
parent 5da2c23280
commit bc4a68f4d1

View File

@ -2,7 +2,6 @@
import clsx from 'clsx'; import clsx from 'clsx';
import { motion } from 'framer-motion'; import { motion } from 'framer-motion';
import { useRef } from 'react';
import useEscapeKey from '@/hooks/useEscapeKey'; import useEscapeKey from '@/hooks/useEscapeKey';
import { HelpTopic } from '@/models/miscellaneous'; import { HelpTopic } from '@/models/miscellaneous';
@ -79,7 +78,6 @@ function Modal({
hideHelpWhen, hideHelpWhen,
...restProps ...restProps
}: React.PropsWithChildren<ModalProps>) { }: React.PropsWithChildren<ModalProps>) {
const ref = useRef(null);
useEscapeKey(hideWindow); useEscapeKey(hideWindow);
const handleCancel = () => { const handleCancel = () => {
@ -103,7 +101,6 @@ function Modal({
onClick={hideWindow} onClick={hideWindow}
/> />
<motion.div <motion.div
ref={ref}
className={clsx( className={clsx(
'z-modal', 'z-modal',
'absolute bottom-1/2 left-1/2 -translate-x-1/2 translate-y-1/2', 'absolute bottom-1/2 left-1/2 -translate-x-1/2 translate-y-1/2',