1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-25 02:46:09 +01:00
onion/js/components/whitelabel/prize/app.js

37 lines
954 B
JavaScript
Raw Normal View History

'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';
import GlobalNotification from '../../global_notification';
let RouteHandler = Router.RouteHandler;
let PrizeApp = React.createClass({
2015-07-13 16:34:26 +02:00
mixins: [Router.State],
render() {
2015-07-13 16:34:26 +02:00
let header = null;
2015-07-14 18:55:34 +02:00
if (this.isActive('landing') || this.isActive('login') || this.isActive('signup')) {
header = <Hero />;
} else {
2015-07-14 21:06:11 +02:00
header = <Header showAddWork={false} />;
2015-07-13 16:34:26 +02:00
}
return (
2015-07-14 18:55:34 +02:00
<div className="ascribe-prize-app">
2015-07-13 16:34:26 +02:00
{header}
2015-07-14 18:55:34 +02:00
<div className="wp">
<RouteHandler />
</div>
<GlobalNotification />
<div id="modal" className="container"></div>
</div>
);
}
});
export default PrizeApp;