Skip to content

Instantly share code, notes, and snippets.

@nth-chile
Last active March 30, 2018 18:40
Show Gist options
  • Save nth-chile/515fd38fa713d4f6882d16ae2dfb093d to your computer and use it in GitHub Desktop.
Save nth-chile/515fd38fa713d4f6882d16ae2dfb093d to your computer and use it in GitHub Desktop.
getInteractiveInputComponent (prompt) {
const disabled = this.viewingInit() || this.viewingIntro()
const {userModule} = this.props
const {currentAttemptsIncorrect} = userModule
let lastErrorHighlightSteps = false
if (currentAttemptsIncorrect === 4) {
const {descriptor} = this.getQuestionProps()
lastErrorHighlightSteps = descriptor.lastErrorHighlightSteps
}
return <BankingKeyboard disabled={disabled}
lastErrorHighlightSteps={lastErrorHighlightSteps}
onKeyPadPress={this.onKeyPadPress}/>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment