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>
35 lines
1.3 KiB
JavaScript
35 lines
1.3 KiB
JavaScript
"use client";
|
|
|
|
// src/select.ts
|
|
import { useSelectStore } from "@ariakit/react-core/select/select-store";
|
|
import { useSelectContext } from "@ariakit/react-core/select/select-context";
|
|
import { Select } from "@ariakit/react-core/select/select";
|
|
import { SelectProvider } from "@ariakit/react-core/select/select-provider";
|
|
import { SelectArrow } from "@ariakit/react-core/select/select-arrow";
|
|
import { SelectGroupLabel } from "@ariakit/react-core/select/select-group-label";
|
|
import { SelectGroup } from "@ariakit/react-core/select/select-group";
|
|
import { SelectItemCheck } from "@ariakit/react-core/select/select-item-check";
|
|
import { SelectItem } from "@ariakit/react-core/select/select-item";
|
|
import { SelectLabel } from "@ariakit/react-core/select/select-label";
|
|
import { SelectList } from "@ariakit/react-core/select/select-list";
|
|
import { SelectPopover } from "@ariakit/react-core/select/select-popover";
|
|
import { SelectRow } from "@ariakit/react-core/select/select-row";
|
|
import { SelectSeparator } from "@ariakit/react-core/select/select-separator";
|
|
|
|
export {
|
|
useSelectStore,
|
|
useSelectContext,
|
|
Select,
|
|
SelectProvider,
|
|
SelectArrow,
|
|
SelectGroupLabel,
|
|
SelectGroup,
|
|
SelectItemCheck,
|
|
SelectItem,
|
|
SelectLabel,
|
|
SelectList,
|
|
SelectPopover,
|
|
SelectRow,
|
|
SelectSeparator
|
|
};
|