diff --git a/src/components/structures/BottomLeftMenu.js b/src/components/structures/BottomLeftMenu.js index 793f8405..162980f2 100644 --- a/src/components/structures/BottomLeftMenu.js +++ b/src/components/structures/BottomLeftMenu.js @@ -115,7 +115,7 @@ module.exports = React.createClass({ var TintableSvg = sdk.getComponent('elements.TintableSvg'); var homeButton; - if (SdkConfig.get().home_page) { + if (window.localStorage.getItem('mx_team_token')) { homeButton = (
diff --git a/src/components/structures/HomePage.js b/src/components/structures/HomePage.js index ecf2f271..67bf91bc 100644 --- a/src/components/structures/HomePage.js +++ b/src/components/structures/HomePage.js @@ -16,8 +16,6 @@ limitations under the License. 'use strict'; -import 'isomorphic-fetch'; - var React = require("react"); var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); var sdk = require('matrix-react-sdk'); @@ -26,40 +24,17 @@ module.exports = React.createClass({ displayName: 'HomePage', propTypes: { - config: React.PropTypes.object.isRequired, + teamToken: React.PropTypes.string.isRequired, collapsedRhs: React.PropTypes.bool, }, - getInitialState: function() { - return { - page: "" - }; - }, - - componentWillMount: function() { - fetch(this.props.config.home_page).then( - (response)=>{ - return response.text(); - }, - (error)=>{ - console.log(error); - this.setState({ page: "Couldn't load home page" }); - } - ).done( - (body)=>{ - this.setState({ page: body }); - } - ); - }, - render: function() { // const SimpleRoomHeader = sdk.getComponent('rooms.SimpleRoomHeader'); // return (
-
-
+