about summary refs log tree commit diff
path: root/src/state/shell
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-12-13 17:16:53 +0000
committerGitHub <noreply@github.com>2024-12-13 17:16:53 +0000
commit356dad1932c3404f581b747127ae251dbe165bb3 (patch)
treed966d4c5fd4645f9897a984a018d7258399e1674 /src/state/shell
parente2a7965e438db9f70d76d2d7a911aa4c4a42c122 (diff)
downloadvoidsky-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/state/shell')
-rw-r--r--src/state/shell/light-status-bar.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/state/shell/light-status-bar.tsx b/src/state/shell/light-status-bar.tsx
index eb213adb9..6f47689d1 100644
--- a/src/state/shell/light-status-bar.tsx
+++ b/src/state/shell/light-status-bar.tsx
@@ -1,7 +1,6 @@
 import {createContext, useContext, useEffect, useState} from 'react'
 
 import {isWeb} from '#/platform/detection'
-import {IS_DEV} from '#/env'
 
 const LightStatusBarRefCountContext = createContext<boolean>(false)
 const SetLightStatusBarRefCountContext = createContext<React.Dispatch<
@@ -19,7 +18,7 @@ export function useSetLightStatusBar(enabled: boolean) {
     if (isWeb) return
 
     if (!setRefCount) {
-      if (IS_DEV)
+      if (__DEV__)
         console.error(
           'useLightStatusBar was used without a SetLightStatusBarRefCountContext provider',
         )