You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Fix right panel data flow (#7811)
This commit is contained in:
		@@ -1,6 +1,5 @@
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import EventEmitter from "events";
 | 
			
		||||
import ShallowRenderer from 'react-test-renderer/shallow';
 | 
			
		||||
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
 | 
			
		||||
import { JoinRule } from 'matrix-js-sdk/src/@types/partials';
 | 
			
		||||
 | 
			
		||||
@@ -10,11 +9,6 @@ import { makeType } from "../src/utils/TypeUtils";
 | 
			
		||||
import { ValidatedServerConfig } from "../src/utils/AutoDiscoveryUtils";
 | 
			
		||||
import MatrixClientContext from "../src/contexts/MatrixClientContext";
 | 
			
		||||
 | 
			
		||||
export function getRenderer() {
 | 
			
		||||
    // Old: ReactTestUtils.createRenderer();
 | 
			
		||||
    return new ShallowRenderer();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Stub out the MatrixClient, and configure the MatrixClientPeg object to
 | 
			
		||||
 * return it when get() is called.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user