1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

Merge branch 'master' into AP-7-artcity-consignment-wallet

Ok, it was my fault...

Conflicts:
	js/components/whitelabel/wallet/wallet_app.js
This commit is contained in:
Tim Daubenschütz 2016-02-08 10:09:14 +01:00
commit e69dc21518
2 changed files with 6 additions and 17 deletions

View File

@ -13,7 +13,7 @@ let Vivi23Landing = React.createClass({
propTypes: { propTypes: {
customThumbnailPlaceholder: React.PropTypes.func, customThumbnailPlaceholder: React.PropTypes.func,
// Provided from PrizeApp // Provided from WalletApp
currentUser: React.PropTypes.object, currentUser: React.PropTypes.object,
whitelabel: React.PropTypes.object.isRequired, whitelabel: React.PropTypes.object.isRequired,

View File

@ -13,34 +13,23 @@ import { setDocumentTitle } from '../../../../../utils/dom_utils';
let PollineLanding = React.createClass({ let PollineLanding = React.createClass({
getInitialState() { propTypes: {
return WhitelabelStore.getState(); // Provided from WalletApp
currentUser: React.PropTypes.object,
whitelabel: React.PropTypes.object.isRequired
}, },
componentWillMount() { componentWillMount() {
setDocumentTitle('Polline Marketplace'); setDocumentTitle('Polline Marketplace');
}, },
componentDidMount() {
WhitelabelStore.listen(this.onChange);
WhitelabelActions.fetchWhitelabel();
},
componentWillUnmount() {
WhitelabelStore.unlisten(this.onChange);
},
onChange(state) {
this.setState(state);
},
render() { render() {
return ( return (
<div className="container ascribe-form-wrapper polline-landing"> <div className="container ascribe-form-wrapper polline-landing">
<div className="row"> <div className="row">
<div className="col-xs-12"> <div className="col-xs-12">
<div className="row polline-landing--header"> <div className="row polline-landing--header">
<img className="polline-landing--header-logo" src={this.state.whitelabel.logo} /> <img className="polline-landing--header-logo" src={this.props.whitelabel.logo} />
<div> <div>
{getLangText('Polline Art Marketplace is powered by') + ' '} {getLangText('Polline Art Marketplace is powered by') + ' '}
<span className="icon-ascribe-logo" /> <span className="icon-ascribe-logo" />