Added WSO2 Logo

feature/appm-store/pbac
Menaka Jayawardena 7 years ago
parent 3ea10491d9
commit 3cbcefe3a9

@ -19,6 +19,7 @@
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React, {Component} from 'react'; import React, {Component} from 'react';
import {withRouter} from 'react-router-dom'; import {withRouter} from 'react-router-dom';
import Axios from 'axios';
import AuthHandler from "../../api/authHandler"; import AuthHandler from "../../api/authHandler";
import {Button, Col, Container, Input, Row,} from 'reactstrap'; import {Button, Col, Container, Input, Row,} from 'reactstrap';
import ApplicationCreate from '../Application/Create/ApplicationCreate'; import ApplicationCreate from '../Application/Create/ApplicationCreate';
@ -42,9 +43,20 @@ class BaseLayout extends Component {
notifications: 0, notifications: 0,
user: 'Admin', user: 'Admin',
openModal: false, openModal: false,
currentPage: "Applications" currentPage: "Applications",
logo: {}
}; };
}
componentWillMount() {
Axios.get("/images/logo.png", {responseType: 'arraybuffer'}).then(
response => {
let image = "data:image/jpeg;base64," + new Buffer(response.data, 'binary').toString('base64');
this.setState({logo: image});
}
).catch(err => {
console.log(err);
});
} }
handleApplicationClick() { handleApplicationClick() {
@ -86,7 +98,8 @@ class BaseLayout extends Component {
<div id="header"> <div id="header">
<span id="header-text"> <span id="header-text">
WSO2 IoT <FormattedMessage id="App.Publisher" defaultMessage="Application Publisher"/> <img className="header-image" src={this.state.logo}/>
IoT <FormattedMessage id="App.Publisher" defaultMessage="Application Publisher"/>
</span> </span>
<div id="header-btn-container"> <div id="header-btn-container">
<Button id="header-button"><i className="fw fw-notification btn-header"></i></Button> <Button id="header-button"><i className="fw fw-notification btn-header"></i></Button>
@ -117,7 +130,8 @@ class BaseLayout extends Component {
<Row id="sub-title-container"> <Row id="sub-title-container">
<Col> <Col>
<div id="sub-title"> <div id="sub-title">
{this.state.currentPage} {/*TODO: Add the current page title*/}
{/*{window.location.pathname}*/}
</div> </div>
</Col> </Col>
<Col> <Col>

Loading…
Cancel
Save