mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-11-04 01:47:25 +03:00 
			
		
		
		
	Merge pull request #103 from chriskjaer/extend-component
Extend component
This commit is contained in:
		
						commit
						c0010a2ae6
					
				| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
import React, { PropTypes } from 'react';
 | 
					import React, { PropTypes, Component } from 'react';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function getDefaultStyle(props) {
 | 
					export function getDefaultStyle(props) {
 | 
				
			||||||
  let { left, right, bottom, top } = props;
 | 
					  let { left, right, bottom, top } = props;
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@ export function getDefaultStyle(props) {
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class DebugPanel {
 | 
					export default class DebugPanel extends Component {
 | 
				
			||||||
  static propTypes = {
 | 
					  static propTypes = {
 | 
				
			||||||
    left: PropTypes.bool,
 | 
					    left: PropTypes.bool,
 | 
				
			||||||
    right: PropTypes.bool,
 | 
					    right: PropTypes.bool,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
import React, { PropTypes, findDOMNode } from 'react';
 | 
					import React, { PropTypes, findDOMNode, Component } from 'react';
 | 
				
			||||||
import LogMonitorEntry from './LogMonitorEntry';
 | 
					import LogMonitorEntry from './LogMonitorEntry';
 | 
				
			||||||
import LogMonitorButton from './LogMonitorButton';
 | 
					import LogMonitorButton from './LogMonitorButton';
 | 
				
			||||||
import * as themes from './themes';
 | 
					import * as themes from './themes';
 | 
				
			||||||
| 
						 | 
					@ -32,8 +32,9 @@ const styles = {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class LogMonitor {
 | 
					export default class LogMonitor extends Component {
 | 
				
			||||||
  constructor() {
 | 
					  constructor(props) {
 | 
				
			||||||
 | 
					    super(props)
 | 
				
			||||||
    if (typeof window !== 'undefined') {
 | 
					    if (typeof window !== 'undefined') {
 | 
				
			||||||
      window.addEventListener('keydown', ::this.handleKeyPress);
 | 
					      window.addEventListener('keydown', ::this.handleKeyPress);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
import React, { PropTypes } from 'react';
 | 
					import React, { PropTypes, Component } from 'react';
 | 
				
			||||||
import JSONTree from 'react-json-tree';
 | 
					import JSONTree from 'react-json-tree';
 | 
				
			||||||
import LogMonitorEntryAction from './LogMonitorEntryAction';
 | 
					import LogMonitorEntryAction from './LogMonitorEntryAction';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,7 @@ const styles = {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class LogMonitorEntry {
 | 
					export default class LogMonitorEntry extends Component {
 | 
				
			||||||
  static propTypes = {
 | 
					  static propTypes = {
 | 
				
			||||||
    index: PropTypes.number.isRequired,
 | 
					    index: PropTypes.number.isRequired,
 | 
				
			||||||
    state: PropTypes.object.isRequired,
 | 
					    state: PropTypes.object.isRequired,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user