1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
var React = require("react");
var actions = require("../../actions.js");
var NavAction = React.createClass({
onClick: function (e) {
e.preventDefault();
this.props.onClick();
},
render: function () {
return (
);
}
});
var Nav = React.createClass({
render: function () {
var flow = this.props.flow;
var tabs = this.props.tabs.map(function (e) {
var str = e.charAt(0).toUpperCase() + e.slice(1);
var className = this.props.active === e ? "active" : "";
var onClick = function (event) {
this.props.selectTab(e);
event.preventDefault();
}.bind(this);
return {str};
}.bind(this));
var acceptButton = null;
if(flow.intercepted){
acceptButton =