fix: React admin icon imports and mount point rendering
- Fix all @wordpress/icons imports - use build/ paths and call as functions - Update all admin pages to render React mount points - Components fixed: VariationPricingTable, NotificationLog, GlobalSettings, FormFieldOptions, OrderDetail, OrderListItem, OrderList, FormCanvas, AnalyticsDashboard, FormField, Products - Admin pages updated: Order.php, Customer.php, Coupon.php, License.php, Product.php, Access.php, Form.php Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -642,12 +642,13 @@ class Order {
|
||||
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
||||
$order_id = isset($_GET['order_id']) ? intval($_GET['order_id']) : 0;
|
||||
if(empty($order_id)){
|
||||
include FORMIPAY_PATH . 'admin/page-orders.php';
|
||||
}else{
|
||||
$order = formipay_get_order( $order_id );
|
||||
include FORMIPAY_PATH . 'admin/page-order-details.php';
|
||||
}
|
||||
$page = $order_id ? 'order-detail' : 'orders';
|
||||
|
||||
// Render React mount point
|
||||
printf(
|
||||
'<div id="formipay-admin-root" data-formipay-mount="%s"></div>',
|
||||
esc_attr($page)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user