Fix modal scrolling
This commit is contained in:
parent
bc4b0e2df7
commit
683cd039e7
6 changed files with 27 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import React from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import { Save, Copy, X } from 'lucide-react';
|
||||
import { useBodyScrollLock } from '../hooks/useBodyScrollLock';
|
||||
|
||||
interface SaveOptionsModalProps {
|
||||
isOpen: boolean;
|
||||
|
|
@ -17,6 +18,8 @@ export const SaveOptionsModal: React.FC<SaveOptionsModalProps> = ({
|
|||
onOverwrite,
|
||||
isSaving
|
||||
}) => {
|
||||
useBodyScrollLock(isOpen);
|
||||
|
||||
if (!isOpen) return null;
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue