Use save method in Update button

[MAILPOET-4462]
This commit is contained in:
David Remer
2022-10-18 10:28:23 +03:00
committed by Jan Jakeš
parent f92a12db30
commit f169c8f8ac

View File

@ -36,13 +36,13 @@ function ActivateButton(): JSX.Element {
}
function UpdateButton(): JSX.Element {
const { activate } = useDispatch(storeName);
const { save } = useDispatch(storeName);
return (
<Button
variant="primary"
className="editor-post-publish-button"
onClick={activate}
onClick={save}
>
{__('Update', 'mailpoet')}
</Button>