pl-fe: fix modal close

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-02 17:59:37 +02:00
parent 752f10fac2
commit cffcbc8d2b

View file

@ -29,12 +29,12 @@ const TextFieldModal: React.FC<TextFieldModalProps & BaseModalProps> = ({
const [value, setValue] = useState(text);
const handleClick = () => {
onClose('CONFIRM');
onClose('TEXT_FIELD');
onConfirm(value);
};
const handleCancel = () => {
onClose('CONFIRM');
onClose('TEXT_FIELD');
if (onCancel) onCancel();
};