mirror of https://github.com/vector-im/riot-web
commit
b86f9f362a
|
@ -199,7 +199,7 @@ export default React.createClass({
|
|||
var topBar;
|
||||
if (this.props.hasNewVersion) {
|
||||
topBar = <NewVersionBar version={this.props.version} newVersion={this.props.newVersion}
|
||||
releaseNotes={this.state.newVersionReleaseNotes}
|
||||
releaseNotes={this.props.newVersionReleaseNotes}
|
||||
/>;
|
||||
}
|
||||
else if (this.props.matrixClient.isGuest()) {
|
||||
|
|
|
@ -26,7 +26,7 @@ import React from 'react';
|
|||
*/
|
||||
export default function(WrappedComponent) {
|
||||
return React.createClass({
|
||||
displayName: "MatrixClient<" + WrappedComponent.displayName + ">",
|
||||
displayName: "WithMatrixClient<" + WrappedComponent.displayName + ">",
|
||||
|
||||
contextTypes: {
|
||||
matrixClient: React.PropTypes.instanceOf(Matrix.MatrixClient).isRequired,
|
||||
|
|
Loading…
Reference in New Issue