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:
Vardan Hakobyan
2022-06-22 00:06:08 +04:00
committed by GitHub
parent cb209b8dfd
commit 3b4797c243
7 changed files with 42 additions and 16 deletions

View 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
}