Move /platform/detection vars into /env (#9707)
* Add platform vars to env * Replace /platform/detection with /env
This commit is contained in:
@@ -82,7 +82,7 @@ export function Trigger({children, label}: TriggerProps) {
|
||||
|
||||
if (typeof children === 'function') {
|
||||
return children({
|
||||
isNative: true,
|
||||
IS_NATIVE: true,
|
||||
control,
|
||||
state: {
|
||||
hovered: false,
|
||||
|
||||
@@ -68,7 +68,7 @@ export function Trigger({children, label}: TriggerProps) {
|
||||
<RadixTriggerPassThrough>
|
||||
{props =>
|
||||
children({
|
||||
isNative: false,
|
||||
IS_NATIVE: false,
|
||||
state: {
|
||||
hovered,
|
||||
focused,
|
||||
|
||||
@@ -65,7 +65,7 @@ export type TriggerProps = {
|
||||
|
||||
export type TriggerChildProps =
|
||||
| {
|
||||
isNative: true
|
||||
IS_NATIVE: true
|
||||
control: DialogControlProps
|
||||
state: {
|
||||
/**
|
||||
@@ -92,7 +92,7 @@ export type TriggerChildProps =
|
||||
}
|
||||
}
|
||||
| {
|
||||
isNative: false
|
||||
IS_NATIVE: false
|
||||
state: {
|
||||
hovered: boolean
|
||||
focused: boolean
|
||||
|
||||
Reference in New Issue
Block a user