mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 17:45:10 +01:00
5b2ab6c1e2
otherdata frontend MIGRATE + loaddate whitelabel
38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
'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({
|
|
mixins: [Router.State],
|
|
|
|
render() {
|
|
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) {
|
|
header = (
|
|
<div className="hero"/>);
|
|
} else {
|
|
header = <Header showAddWork={true} />;
|
|
}
|
|
return (
|
|
<div className="container ascribe-prize-app">
|
|
{header}
|
|
<RouteHandler />
|
|
<GlobalNotification />
|
|
<div id="modal" className="container"></div>
|
|
<Footer />
|
|
</div>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default WalletApp;
|