From b9805dc7a40d348a813e15a3f8afdf017e8cdb02 Mon Sep 17 00:00:00 2001 From: mikheikinnv Date: Tue, 18 Jun 2024 13:04:39 +0300 Subject: [PATCH] MSP-3430 add loading props --- src/widgets/Modal/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/widgets/Modal/index.tsx b/src/widgets/Modal/index.tsx index 66444ff..3c0457d 100644 --- a/src/widgets/Modal/index.tsx +++ b/src/widgets/Modal/index.tsx @@ -13,7 +13,8 @@ const Modal = ({ footer, title, children, - onClose = () => {} + onClose = () => {}, + loading = false }: ModalPropsType) => { const handleKeyDown = (event: KeyboardEvent) => { if (event.key === 'Escape') { @@ -49,10 +50,10 @@ const Modal = ({
{children}
{footer && (
- -