27 lines
786 B
CoffeeScript
27 lines
786 B
CoffeeScript
context = window
|
|
teacherActions = window.JK.Actions.Teacher
|
|
SessionActions = @SessionActions
|
|
|
|
@TeacherSetupNav = React.createClass({
|
|
|
|
navBack: (e) ->
|
|
e.preventDefault();
|
|
console.log("navBack this.props", this.state, this.props)
|
|
this.props.handleNav({direction: "back"})
|
|
|
|
navNext: (e) ->
|
|
e.preventDefault()
|
|
console.log("navNext this.props", this.state, this.props)
|
|
this.props.handleNav({direction: "next"})
|
|
|
|
render: () ->
|
|
console.log("SetupNav: this.props", this.state, this.ref, this.props.handleNav)
|
|
`<div className="TeacherSetupNav">
|
|
<a className="nav-button button-grey" onClick={this.navBack}>
|
|
BACK
|
|
</a>
|
|
<a className="nav-button button-orange" onClick={this.navNext}>
|
|
NEXT
|
|
</a>
|
|
</div>`
|
|
}) |