Convert to UseIdeContext

related to #360
This commit is contained in:
Kurt Hutten
2021-06-13 06:23:36 +10:00
parent c142860433
commit d781c94027
7 changed files with 19 additions and 20 deletions

View File

@@ -1,10 +1,10 @@
import { useContext, useEffect } from 'react'
import { IdeContext } from 'src/pages/DevIdePage/DevIdePage'
import { useEffect } from 'react'
import { useIdeContext } from 'src/helpers/hooks/useIdeContext'
import { matchEditorVsDarkTheme } from 'src/components/IdeEditor'
import PanelToolbar from 'src/components/PanelToolbar'
const IdeConsole = () => {
const { state } = useContext(IdeContext)
const { state } = useIdeContext()
useEffect(() => {
const element = document.querySelector('.console-tile .mosaic-window-body')
if (element) {