confirming works, last address is now persisted, thank you page is up but not yet accessible

This commit is contained in:
Senad Uka
2015-03-03 07:26:18 +01:00
parent 4befef5bf4
commit 0f47367cd0
9 changed files with 153 additions and 20 deletions

View File

@@ -0,0 +1,60 @@
var React = require('react'),
CartStore = require('../../stores/cartStore'),
AddToCart = require('../cart/addToCart'),
CartActions = require('../../actions/cartActions'),
NavigationActions = require('../../actions/navigationActions'),
Globals = require('../../globals')
Router = require("react-router"),
Link = Router.Link;
var ThankYouPage = React.createClass({
render: function() {
return (
<div className="thank-you-page center">
<h1>Roba je naručena!</h1>
<p>Hvala na narudžbi. Naša zaposlenica će vas kontaktirati da ugovori detalje o preuzimanju. </p>
<p>Registrujte se kako biste dobili informaciju o popustima, imali pregled svih vaših narudžbi,
koristili Baby Shower, Predlagač poklona te kalendar događaja.</p>
<p>
Registracija je jednostavna - samo jedan klik. <Link to="registracija">Klikni ovdje</Link>.
</p>
</div>
);
},
// Add change listeners to stores
/*
,
componentDidMount: function() {
CartStore.addChangeListener(this._onChange);
CartActions.load();
},
componentWillUnmount: function () {
CartStore.removeChangeListener(this._onChange);
},
_onChange: function () {
if (this.isMounted()) {
this.setState(CartStore.getWholeCartState());
}
},
getInitialState: function () {
return CartStore.getWholeCartState();
}*/
});
module.exports = ThankYouPage;