woocommerce/plugins/woocommerce-blocks/assets/js/blocks/order-confirmation/create-account/frontend.tsx

25 lines
499 B
TypeScript

/**
* External dependencies
*/
import { renderFrontend } from '@woocommerce/base-utils';
/**
* Internal dependencies
*/
import Block from './form';
import { parseAttributes } from './utils';
const getProps = ( el: HTMLElement ) => {
return {
attributes: parseAttributes( el.dataset ),
isEditor: false,
};
};
// This does not replace the entire block markup, just the form part.
renderFrontend( {
selector: '.woocommerce-order-confirmation-create-account-form',
Block,
getProps,
} );