1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-10 11:35:13 +02:00
onion/js/components/whitelabel/wallet/wallet_app.js

38 lines
1.0 KiB
JavaScript
Raw Normal View History

'use strict';
import React from 'react';
import Router from 'react-router';
import Header from '../../header';
import Footer from '../../footer';
import GlobalNotification from '../../global_notification';
let RouteHandler = Router.RouteHandler;
let WalletApp = React.createClass({
2015-08-19 14:48:22 +02:00
mixins: [Router.State],
render() {
2015-08-19 14:48:22 +02:00
let header = null;
let subdomain = window.location.host.split('.')[0];
if ((this.isActive('landing') || this.isActive('login') || this.isActive('signup'))
&& (['ikonotv', 'cyland']).indexOf(subdomain) > -1) {
2015-08-19 14:48:22 +02:00
header = (
<div className="hero"/>);
} else {
header = <Header showAddWork={true} />;
2015-08-19 14:48:22 +02:00
}
return (
<div className="container ascribe-prize-app">
2015-08-19 14:48:22 +02:00
{header}
2015-08-12 16:26:24 +02:00
<RouteHandler />
<GlobalNotification />
<div id="modal" className="container"></div>
<Footer />
</div>
);
}
});
export default WalletApp;