Merge pull request #1197 from matrix-org/dbkr/my_groups_withMatrixClient
WithMatrixClient -> withMatrixClientpull/21833/head
						commit
						b420a8389d
					
				| 
						 | 
				
			
			@ -17,7 +17,7 @@ limitations under the License.
 | 
			
		|||
import React from 'react';
 | 
			
		||||
import sdk from '../../index';
 | 
			
		||||
import { _t, _tJsx } from '../../languageHandler';
 | 
			
		||||
import WithMatrixClient from '../../wrappers/WithMatrixClient';
 | 
			
		||||
import withMatrixClient from '../../wrappers/withMatrixClient';
 | 
			
		||||
import AccessibleButton from '../views/elements/AccessibleButton';
 | 
			
		||||
import dis from '../../dispatcher';
 | 
			
		||||
import PropTypes from 'prop-types';
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +43,7 @@ const GroupTile = React.createClass({
 | 
			
		|||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
export default WithMatrixClient(React.createClass({
 | 
			
		||||
export default withMatrixClient(React.createClass({
 | 
			
		||||
    displayName: 'MyGroups',
 | 
			
		||||
 | 
			
		||||
    propTypes: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,7 +24,7 @@ var Modal = require('../../../Modal');
 | 
			
		|||
 | 
			
		||||
var sdk = require('../../../index');
 | 
			
		||||
var TextForEvent = require('../../../TextForEvent');
 | 
			
		||||
import WithMatrixClient from '../../../wrappers/WithMatrixClient';
 | 
			
		||||
import withMatrixClient from '../../../wrappers/withMatrixClient';
 | 
			
		||||
 | 
			
		||||
var ContextualMenu = require('../../structures/ContextualMenu');
 | 
			
		||||
import dis from '../../../dispatcher';
 | 
			
		||||
| 
						 | 
				
			
			@ -59,7 +59,7 @@ var MAX_READ_AVATARS = 5;
 | 
			
		|||
// |    '--------------------------------------'              |
 | 
			
		||||
// '----------------------------------------------------------'
 | 
			
		||||
 | 
			
		||||
module.exports = WithMatrixClient(React.createClass({
 | 
			
		||||
module.exports = withMatrixClient(React.createClass({
 | 
			
		||||
    displayName: 'EventTile',
 | 
			
		||||
 | 
			
		||||
    propTypes: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,12 +36,12 @@ import createRoom from '../../../createRoom';
 | 
			
		|||
import DMRoomMap from '../../../utils/DMRoomMap';
 | 
			
		||||
import Unread from '../../../Unread';
 | 
			
		||||
import { findReadReceiptFromUserId } from '../../../utils/Receipt';
 | 
			
		||||
import WithMatrixClient from '../../../wrappers/WithMatrixClient';
 | 
			
		||||
import withMatrixClient from '../../../wrappers/withMatrixClient';
 | 
			
		||||
import AccessibleButton from '../elements/AccessibleButton';
 | 
			
		||||
import GeminiScrollbar from 'react-gemini-scrollbar';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
module.exports = WithMatrixClient(React.createClass({
 | 
			
		||||
module.exports = withMatrixClient(React.createClass({
 | 
			
		||||
    displayName: 'MemberInfo',
 | 
			
		||||
 | 
			
		||||
    propTypes: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,10 +19,10 @@ import { _t } from '../../../languageHandler';
 | 
			
		|||
 | 
			
		||||
import sdk from '../../../index';
 | 
			
		||||
import AddThreepid from '../../../AddThreepid';
 | 
			
		||||
import WithMatrixClient from '../../../wrappers/WithMatrixClient';
 | 
			
		||||
import withMatrixClient from '../../../wrappers/withMatrixClient';
 | 
			
		||||
import Modal from '../../../Modal';
 | 
			
		||||
 | 
			
		||||
export default WithMatrixClient(React.createClass({
 | 
			
		||||
export default withMatrixClient(React.createClass({
 | 
			
		||||
    displayName: 'AddPhoneNumber',
 | 
			
		||||
 | 
			
		||||
    propTypes: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
		Loading…
	
		Reference in New Issue