Files
formipay/node_modules/@wordpress/components/build-module/focal-point-picker/focal-point.native.js
dwindown e8fbfb14c1 fix: prevent asset conflicts between React and Grid.js versions
Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 17:02:14 +07:00

30 lines
868 B
JavaScript

import { createElement } from "react";
/**
* WordPress dependencies
*/
import { Path, SVG } from '@wordpress/primitives';
/**
* Internal dependencies
*/
import styles from './style.scss';
export default function FocalPoint({
height,
style,
width
}) {
return createElement(SVG, {
height: height,
style: style,
viewBox: "0 0 30 30",
width: width,
xmlns: "http://www.w3.org/2000/svg"
}, createElement(Path, {
style: styles.focalPointIconPathOutline,
d: "M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"
}), createElement(Path, {
style: styles.focalPointIconPathFill,
d: "M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"
}));
}
//# sourceMappingURL=focal-point.native.js.map