feat: check whether the app runs within bee-desktop is now an environment variable (#490)

* feat: check whether the app runs within bee-desktop is now an environment variable

* chore: remove console.log
This commit is contained in:
Vojtech Simetka
2022-07-25 10:28:17 +02:00
committed by GitHub
parent 6bfe97be5d
commit f01477ea70
9 changed files with 45 additions and 55 deletions
+1 -2
View File
@@ -12,7 +12,6 @@ import { Context as BeeContext } from '../providers/Bee'
import DashboardLogo from '../assets/dashboard-logo.svg'
import DesktopLogo from '../assets/desktop-logo.svg'
import { config } from '../config'
import { useIsBeeDesktop } from '../hooks/apiHooks'
import { ROUTES } from '../routes'
import Feedback from './Feedback'
import SideBarItem from './SideBarItem'
@@ -67,7 +66,7 @@ const useStyles = makeStyles((theme: Theme) =>
export default function SideBar(): ReactElement {
const classes = useStyles()
const { isBeeDesktop } = useIsBeeDesktop()
const isBeeDesktop = config.BEE_DESKTOP_ENABLED
const { nodeInfo } = useContext(BeeContext)
const navBarItems = [