2015-07-10 16:43:35 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import Router from 'react-router';
|
2015-07-13 16:34:26 +02:00
|
|
|
import Hero from './components/hero';
|
|
|
|
import Header from '../../header';
|
2015-07-13 14:29:20 +02:00
|
|
|
// import Footer from '../../footer';
|
2015-07-10 16:43:35 +02:00
|
|
|
import GlobalNotification from '../../global_notification';
|
|
|
|
|
|
|
|
let RouteHandler = Router.RouteHandler;
|
|
|
|
|
|
|
|
|
|
|
|
let PrizeApp = React.createClass({
|
2015-07-13 16:34:26 +02:00
|
|
|
mixins: [Router.State],
|
|
|
|
|
2015-07-10 16:43:35 +02:00
|
|
|
render() {
|
2015-07-13 16:34:26 +02:00
|
|
|
let header = null;
|
|
|
|
if (this.isActive('pieces')) {
|
|
|
|
header = (
|
|
|
|
<Header />
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-07-10 16:43:35 +02:00
|
|
|
return (
|
2015-07-13 14:29:20 +02:00
|
|
|
<div className="whitelabel-prize">
|
2015-07-13 16:34:26 +02:00
|
|
|
<Hero />
|
|
|
|
{header}
|
2015-07-10 16:43:35 +02:00
|
|
|
<RouteHandler />
|
|
|
|
<GlobalNotification />
|
|
|
|
<div id="modal" className="container"></div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default PrizeApp;
|