const { __ } = wp.i18n; const { Component } = wp.element; const { serverSideRender: ServerSideRender } = wp; const { InspectorControls, PanelColorSettings } = wp.editor; const { PanelBody, SelectControl, TextControl } = wp.components; import { InspectorContainer } from '../commonComponents/container/container'; /** * The edit function describes the structure of your block in the context of the editor. * This represents what the editor will render when the block is used. * * The "edit" property must be a valid function. * @param {Object} props - attributes * @returns {Node} rendered component */ export default class Edit extends Component { render() { const { className, attributes, setAttributes, } = this.props; return (
setAttributes( { eventID } ) } help={ __('Go to Products section from your admin menu. From the products list view hover on the desired record. ID number will show up. Copy it here.', 'myticket-events' ) } /> Settings > Products > Redirect to the cart...', 'myticket-events' ) } onChange={ (redirect) => setAttributes( { redirect } ) } /> { return setAttributes( { mainColor: value } ); }, label: __( 'Selected', 'myticket-events' ), }, ] } />
); } }