WithMatrixClient -> withMatrixClient

because we're using it as a function rather than a React component
This commit is contained in:
David Baker 2017-07-07 11:34:20 +01:00
parent fea0a941ce
commit bc8c2d442b
5 changed files with 10 additions and 9 deletions

View file

@ -1,5 +1,6 @@
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -26,7 +27,7 @@ import React from 'react';
*/
export default function(WrappedComponent) {
return React.createClass({
displayName: "WithMatrixClient<" + WrappedComponent.displayName + ">",
displayName: "withMatrixClient<" + WrappedComponent.displayName + ">",
contextTypes: {
matrixClient: React.PropTypes.instanceOf(Matrix.MatrixClient).isRequired,