From cffcbc8d2b26769d0581fe4940dca78a10037407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 2 Sep 2024 17:59:37 +0200 Subject: [PATCH] pl-fe: fix modal close MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../src/features/ui/components/modals/text-field-modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pl-fe/src/features/ui/components/modals/text-field-modal.tsx b/packages/pl-fe/src/features/ui/components/modals/text-field-modal.tsx index 0eb2d68bb..aafdb3db0 100644 --- a/packages/pl-fe/src/features/ui/components/modals/text-field-modal.tsx +++ b/packages/pl-fe/src/features/ui/components/modals/text-field-modal.tsx @@ -29,12 +29,12 @@ const TextFieldModal: React.FC = ({ const [value, setValue] = useState(text); const handleClick = () => { - onClose('CONFIRM'); + onClose('TEXT_FIELD'); onConfirm(value); }; const handleCancel = () => { - onClose('CONFIRM'); + onClose('TEXT_FIELD'); if (onCancel) onCancel(); };