R: Remove unused ref
This commit is contained in:
parent
09cfb4f5e5
commit
02fee878d1
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user