This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UnconnectedModuleHome extends Component { | |
constructor (props) { | |
super(props) | |
const moduleData = Helper.getModuleJson(props.module) | |
const defaultModuleName = moduleData.subModules[0] | |
const defaultModuleTask = moduleData.json.defaultModuleTask || | |
moduleData.subModuleTasks[defaultModuleName][0] | |
this.state = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
@main | |
struct ios14DemoApp: App { | |
@StateObject var notificationCenter = NotificationCenter() | |
var body: some Scene { | |
WindowGroup { | |
LocalNotificationDemoView(notificationCenter: notificationCenter) | |
} |