pl-fe: fix modal close
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user