fix: mobile workspace related fixes (#1130)
* feat: put workspaces under unfinished features flag * fix: mention that signing out will quit the app * fix: put more affected places under features flag
This commit is contained in:
8
packages/mobile/src/Hooks/useSafeEnvironmentContext.ts
Normal file
8
packages/mobile/src/Hooks/useSafeEnvironmentContext.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { TEnvironment } from '@Root/App'
|
||||
import { EnvironmentContext } from '@Root/EnvironmentContext'
|
||||
import { useContext } from 'react'
|
||||
|
||||
export const useSafeEnvironmentContext = () => {
|
||||
const env = useContext(EnvironmentContext) as TEnvironment
|
||||
return env
|
||||
}
|
||||
Reference in New Issue
Block a user