- reset password block

This commit is contained in:
ashubawork
2023-03-29 14:38:11 +03:00
parent 61d99135f4
commit a08ed9b6c1
8 changed files with 200 additions and 188 deletions
@@ -0,0 +1,10 @@
{
"apiVersion": 2,
"name": "um-block/um-password-reset",
"title": "Password Reset",
"description": "Displaying the password reset form",
"icon": "unlock",
"category": "um-blocks",
"editorScript": "file:./build/index.js",
"textdomain": "ultimate-member"
}
@@ -0,0 +1,19 @@
import { registerBlockType } from '@wordpress/blocks';
import ServerSideRender from '@wordpress/server-side-render';
import { useBlockProps } from '@wordpress/block-editor';
registerBlockType('um-block/um-password-reset', {
edit: function (props) {
const blockProps = useBlockProps();
return (
<div {...blockProps}>
<ServerSideRender block="um-block/um-password-reset" />
</div>
);
},
save: function save(props) {
return null;
}
});