We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent22eb2c9 commit0f1255aCopy full SHA for 0f1255a
web-app/src/App.tsx
@@ -1,7 +1,7 @@
1
import*asReactfrom'react'
2
import*asCRfrom'typings'
3
4
-//import Debugger from './components/Debugger'
+importDebuggerfrom'./components/Debugger'
5
importRoutesfrom'./Routes'
6
importDataContext,{initialData,initialState}from'./utils/DataContext'
7
import{send}from'./utils/vscode'
@@ -10,6 +10,8 @@ interface ReceivedEvent {
10
data:CR.Action
11
}
12
13
+constdebug=false
14
+
15
constApp=()=>{
16
const[state,setState]=React.useState(initialState)
17
const[data,setData]:[CR.MachineContext,(data:CR.MachineContext)=>void]=React.useState(initialData)
@@ -51,7 +53,7 @@ const App = () => {
51
53
return(
52
54
<DataContext.Providervalue={value}>
55
<div>
-{/*<Debugger value={value} /> */}
56
+{debug&&<Debuggervalue={value}/>}
57
<Routesstate={state}/>
58
</div>
59
</DataContext.Provider>