pl-fe: fix modal close
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
752f10fac2
commit
cffcbc8d2b
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue