1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Fix whitelabel styling

This commit is contained in:
Tim Daubenschütz 2015-10-01 16:11:29 +02:00
parent 9a17e44df1
commit b95906d83e
4 changed files with 6 additions and 4 deletions

View File

@ -166,7 +166,7 @@ let SlidesContainer = React.createClass({
});
} else {
throw new Error('You\'re calling a page number that is out of range.');
throw new Error('You\'re calling a page number that is out of range: ' + slideNum);
}
},

View File

@ -37,7 +37,7 @@ let CylandPieceList = React.createClass({
return (
<div>
<PieceList
redirectTo="/register_piece"
redirectTo="/register_piece?slide_num=0"
accordionListItemType={CylandAccordionListItem}
filterParams={[{
label: getLangText('Show works I have'),

View File

@ -37,7 +37,7 @@ let IkonotvPieceList = React.createClass({
return (
<div>
<PieceList
redirectTo="/register_piece"
redirectTo="/register_piece?slide_num=0"
accordionListItemType={IkonotvAccordionListItem}
filterParams={[{
label: getLangText('Show works I have'),

View File

@ -29,7 +29,9 @@ let WalletApp = React.createClass({
let [, { path } ] = this.props.routes;
let header = null;
if ((this.props.history.isActive('/') || this.props.history.isActive('/login') || this.props.history.isActive('/signup') || this.props.history.isActive('/contract_notifications'))
// if the path of the current activeRoute is not defined, then this is the IndexRoute
if ((!path || this.props.history.isActive('/login') || this.props.history.isActive('/signup') || this.props.history.isActive('/contract_notifications'))
&& (['ikonotv', 'cyland']).indexOf(subdomain) > -1) {
header = (<div className="hero"/>);
} else {