Use save method in Update button
[MAILPOET-4462]
This commit is contained in:
@ -36,13 +36,13 @@ function ActivateButton(): JSX.Element {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function UpdateButton(): JSX.Element {
|
function UpdateButton(): JSX.Element {
|
||||||
const { activate } = useDispatch(storeName);
|
const { save } = useDispatch(storeName);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
variant="primary"
|
variant="primary"
|
||||||
className="editor-post-publish-button"
|
className="editor-post-publish-button"
|
||||||
onClick={activate}
|
onClick={save}
|
||||||
>
|
>
|
||||||
{__('Update', 'mailpoet')}
|
{__('Update', 'mailpoet')}
|
||||||
</Button>
|
</Button>
|
||||||
|
Reference in New Issue
Block a user