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>
17 lines
392 B
JavaScript
17 lines
392 B
JavaScript
/**
|
|
* WordPress dependencies
|
|
*/
|
|
import { SVG, Path } from '@wordpress/primitives';
|
|
|
|
const key = (
|
|
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
<Path
|
|
d="M9 13.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM9 16a4.002 4.002 0 003.8-2.75H15V16h2.5v-2.75H19v-2.5h-6.2A4.002 4.002 0 005 12a4 4 0 004 4z"
|
|
fillRule="evenodd"
|
|
clipRule="evenodd"
|
|
/>
|
|
</SVG>
|
|
);
|
|
|
|
export default key;
|