Added few functions
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useBodyScrollLock } from '@/lib/body-scroll-lock';
|
||||
|
||||
interface AlertModalProps {
|
||||
isOpen: boolean;
|
||||
type: 'success' | 'error' | 'info' | 'warning';
|
||||
@@ -15,6 +17,7 @@ export default function AlertModal({
|
||||
message,
|
||||
onClose,
|
||||
}: AlertModalProps) {
|
||||
useBodyScrollLock(isOpen);
|
||||
if (!isOpen) return null;
|
||||
|
||||
const getStyles = () => {
|
||||
|
||||
Reference in New Issue
Block a user