jam-cloud/web/app/assets/javascripts/react-components/TeacherSetupNav.js.jsx.coffee

27 lines
792 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 right">
<a className="nav-button button-grey" onClick={this.navBack}>
BACK
</a>
<a className="nav-button button-orange" onClick={this.navNext}>
NEXT
</a>
</div>`
})