Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0f1255a

Browse files
committed
setup debugging boolean
1 parent22eb2c9 commit0f1255a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎web-app/src/App.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import*asReactfrom'react'
22
import*asCRfrom'typings'
33

4-
//import Debugger from './components/Debugger'
4+
importDebuggerfrom'./components/Debugger'
55
importRoutesfrom'./Routes'
66
importDataContext,{initialData,initialState}from'./utils/DataContext'
77
import{send}from'./utils/vscode'
@@ -10,6 +10,8 @@ interface ReceivedEvent {
1010
data:CR.Action
1111
}
1212

13+
constdebug=false
14+
1315
constApp=()=>{
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.Providervalue={value}>
5355
<div>
54-
{/*<Debugger value={value} /> */}
56+
{debug&&<Debuggervalue={value}/>}
5557
<Routesstate={state}/>
5658
</div>
5759
</DataContext.Provider>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp