1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-25 18:56:28 +02:00

construct header method added to utils

This commit is contained in:
Cevo 2015-10-06 17:19:47 +02:00
parent c69767c10b
commit ae2578a57c
2 changed files with 3 additions and 5 deletions

View File

@ -29,7 +29,7 @@ import NavRoutesLinks from './nav_routes_links';
import { mergeOptions } from '../utils/general_utils';
import { getLangText } from '../utils/lang_utils';
import setFavicon from 'favicon-setter';
import {constructHead} from '../utils/head_setter';
let Header = React.createClass({
propTypes: {
@ -64,10 +64,9 @@ let Header = React.createClass({
WhitelabelStore.unlisten(this.onChange);
},
getLogo(){
let logoPath = this.state.whitelabel.logo;
setFavicon(logoPath);
constructHead(this.state.whitelabel.head);
if (this.state.whitelabel.subdomain !== 'www'){
return <img className="img-brand" src={logoPath}/>;
return <img className="img-brand" src={this.state.whitelabel.logo}/>;
}
else {
return (

View File

@ -52,7 +52,6 @@
"eslint": "^0.22.1",
"eslint-plugin-react": "^2.5.0",
"express": "^4.12.4",
"favicon-setter": "^0.1.1",
"gulp": "^3.8.11",
"gulp-concat": "^2.5.2",
"gulp-eslint": "^0.13.2",