fix: use a specific feature flag for workspace (#1133)

This commit is contained in:
Vardan Hakobyan
2022-06-22 00:38:40 +04:00
committed by GitHub
parent 13cb655d1c
commit b25919099f
7 changed files with 15 additions and 32 deletions

View File

@@ -1,8 +0,0 @@
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
}