Skip to content

Feature/remove progress #414

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 14 commits into from
Aug 1, 2020
Prev Previous commit
Next Next commit
remove unusued
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Jul 31, 2020
commit fae55a8cc4525f84e3e29e97a21ef93efd9039c9
2 changes: 0 additions & 2 deletions web-app/src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const Routes = () => {
return <ErrorView send={send} error={context.error} />
}

console.log(`ROUTE: ${route}`)

return (
<Router route={route}>
{/* Setup */}
Expand Down
9 changes: 0 additions & 9 deletions web-app/src/services/state/actions/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as T from 'typings'
import * as TT from 'typings/tutorial'
import { assign, send } from 'xstate'
import * as selectors from '../../selectors'
import logger from '../../../services/logger'
import getStepNext from './utils/stepNext'
import getNext from './utils/getNext'

Expand Down Expand Up @@ -66,14 +65,6 @@ export const updatePosition = assign({
},
})

export const updateLevel = assign({
position: (context: T.MachineContext, event: T.MachineEvent): any => {
const levelId = context.position.levelId
console.log(`updateLevel: ${JSON.stringify(context.position)}`)
return { levelId, complete: false }
},
})

export const loadNext = send(
(context: T.MachineContext): T.Action => {
const level = selectors.currentLevel(context)
Expand Down