mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 17:45:10 +01:00
37 lines
825 B
JavaScript
37 lines
825 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
import Router from 'react-router';
|
|
import Hero from './components/hero';
|
|
import Header from '../../header';
|
|
// import Footer from '../../footer';
|
|
import GlobalNotification from '../../global_notification';
|
|
|
|
let RouteHandler = Router.RouteHandler;
|
|
|
|
|
|
let PrizeApp = React.createClass({
|
|
mixins: [Router.State],
|
|
|
|
render() {
|
|
let header = null;
|
|
if (this.isActive('pieces')) {
|
|
header = (
|
|
<Header />
|
|
);
|
|
}
|
|
|
|
return (
|
|
<div className="whitelabel-prize">
|
|
<Hero />
|
|
{header}
|
|
<RouteHandler />
|
|
<GlobalNotification />
|
|
<div id="modal" className="container"></div>
|
|
</div>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default PrizeApp;
|