PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.4
JetFormBuilder — Dynamic Blocks Form Builder v3.6.4
3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 All 130 releases
jetformbuilder / modules / html-parser / admin / HtmlParserButton.js
HtmlParserButton.js
23 lines 571 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import HtmlParserModal from './HtmlParserModal';
2 import { useState, Fragment } from '@wordpress/element';
3 import { __ } from '@wordpress/i18n';
4
5 export default function HtmlParserButton() {
6 const [ showModal, setShowModal ] = useState( false );
7
8 return (
9 <Fragment>
10 <a
11 href="#"
12 className="page-title-action"
13 onClick={ ( event ) => {
14 event.preventDefault();
15 setShowModal( true );
16 } }
17 >
18 { __( 'Import from HTML', 'jet-form-builder' ) }
19 </a>
20 { showModal && <HtmlParserModal setShowModal={ setShowModal } /> }
21 </Fragment>
22 );
23 }