woocommerce/plugins/woocommerce-admin/client/wp-admin-scripts/marketing-coupons/index.js

22 lines
436 B
JavaScript

/**
* External dependencies
*/
import { render } from '@wordpress/element';
/**
* Internal dependencies
*/
import CouponsOverview from '../../marketing/coupons';
const postForm = document.getElementById( 'posts-filter' );
if ( postForm ) {
const couponRoot = document.createElement( 'div' );
couponRoot.setAttribute( 'id', 'coupon-root' );
render(
<CouponsOverview />,
postForm.parentNode.appendChild( couponRoot )
);
}