From ce55ca5bfe2ae3aa1e6aa6567e9bc468275b88cb Mon Sep 17 00:00:00 2001 From: Sergey Elpashev Date: Mon, 21 Apr 2025 16:37:25 +0300 Subject: [PATCH] feat: some style fixes --- src/components/ui/Modal.tsx | 8 ++++++-- src/pages/profile_tasks.tsx | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/ui/Modal.tsx b/src/components/ui/Modal.tsx index 2d7181f..3108974 100644 --- a/src/components/ui/Modal.tsx +++ b/src/components/ui/Modal.tsx @@ -6,8 +6,9 @@ interface ModalWindowProps { isOpen?: boolean; setIsOpen?: Dispatch>; onClose?: () => void; + className?: string; } -const ModalWindow: FunctionComponent = ({ isOpen, children, setIsOpen, onClose }) => { +const ModalWindow: FunctionComponent = ({ isOpen, children, setIsOpen, onClose, className = "" }) => { useEffect(() => { if (isOpen) return; if (onClose) onClose(); @@ -26,7 +27,10 @@ const ModalWindow: FunctionComponent = ({ isOpen, children, se )} >
e.stopPropagation()} > {children} diff --git a/src/pages/profile_tasks.tsx b/src/pages/profile_tasks.tsx index 41e90dc..f31c1d2 100644 --- a/src/pages/profile_tasks.tsx +++ b/src/pages/profile_tasks.tsx @@ -132,7 +132,7 @@ const ProfileTasks: FunctionComponent = () => {
-
+