File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11import * as React from 'react'
22import * as CR from 'typings'
33
4- // import Debugger from './components/Debugger'
4+ import Debugger from './components/Debugger'
55import Routes from './Routes'
66import DataContext , { initialData , initialState } from './utils/DataContext'
77import { send } from './utils/vscode'
@@ -10,6 +10,8 @@ interface ReceivedEvent {
1010 data : CR . Action
1111}
1212
13+ const debug = false
14+
1315const App = ( ) => {
1416 const [ state , setState ] = React . useState ( initialState )
1517 const [ data , setData ] : [ CR . MachineContext , ( data : CR . MachineContext ) => void ] = React . useState ( initialData )
@@ -51,7 +53,7 @@ const App = () => {
5153 return (
5254 < DataContext . Provider value = { value } >
5355 < div >
54- { /* <Debugger value={value} /> */ }
56+ { debug && < Debugger value = { value } /> }
5557 < Routes state = { state } />
5658 </ div >
5759 </ DataContext . Provider >
You can’t perform that action at this time.
0 commit comments