diff options
author | dan <dan.abramov@gmail.com> | 2024-12-13 17:16:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-13 17:16:53 +0000 |
commit | 356dad1932c3404f581b747127ae251dbe165bb3 (patch) | |
tree | d966d4c5fd4645f9897a984a018d7258399e1674 /src/components/dialogs/nuxs | |
parent | e2a7965e438db9f70d76d2d7a911aa4c4a42c122 (diff) | |
download | voidsky-356dad1932c3404f581b747127ae251dbe165bb3.tar.zst |
Remove the environment indirections (#7089)
* Use raw underlying globals for environment * Set dev EXPO_PUBLIC_ENV by exclusion
Diffstat (limited to 'src/components/dialogs/nuxs')
-rw-r--r-- | src/components/dialogs/nuxs/index.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/dialogs/nuxs/index.tsx b/src/components/dialogs/nuxs/index.tsx index 11d622a4d..10cae887b 100644 --- a/src/components/dialogs/nuxs/index.tsx +++ b/src/components/dialogs/nuxs/index.tsx @@ -15,7 +15,6 @@ import {useOnboardingState} from '#/state/shell' * NUXs */ import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing' -import {IS_DEV} from '#/env' type Context = { activeNux: Nux | undefined @@ -93,10 +92,10 @@ function Inner({ setActiveNux(undefined) }, [activeNux, setActiveNux]) - if (IS_DEV && typeof window !== 'undefined') { + if (__DEV__ && typeof window !== 'undefined') { // @ts-ignore window.clearNuxDialog = (id: Nux) => { - if (!IS_DEV || !id) return + if (!__DEV__ || !id) return resetNuxs([id]) unsnooze() } |