Skip to content

Feature/completed #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 23, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
setup debugging boolean
  • Loading branch information
ShMcK committed Jul 23, 2019
commit 0f1255a9b1e071ad85e5a90910038b48c037372e
6 changes: 4 additions & 2 deletions web-app/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import * as CR from 'typings'

// import Debugger from './components/Debugger'
import Debugger from './components/Debugger'
import Routes from './Routes'
import DataContext, { initialData, initialState } from './utils/DataContext'
import { send } from './utils/vscode'
Expand All @@ -10,6 +10,8 @@ interface ReceivedEvent {
data: CR.Action
}

const debug = false

const App = () => {
const [state, setState] = React.useState(initialState)
const [data, setData]: [CR.MachineContext, (data: CR.MachineContext) => void] = React.useState(initialData)
Expand Down Expand Up @@ -51,7 +53,7 @@ const App = () => {
return (
<DataContext.Provider value={value}>
<div>
{/* <Debugger value={value} /> */}
{debug && <Debugger value={value} />}
<Routes state={state} />
</div>
</DataContext.Provider>
Expand Down