import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { onKeyDown } from '../ducks/ui/keyboard'
import MainView from './MainView'
import Header from './Header'
import EventLog from './EventLog'
import Footer from './Footer'
class ProxyAppMain extends Component {
componentWillMount() {
window.addEventListener('keydown', this.props.onKeyDown);
}
componentWillUnmount() {
window.removeEventListener('keydown', this.props.onKeyDown);
}
render() {
const { showEventLog, location, filter, highlight } = this.props
return (
{showEventLog && (
)}
)
}
}
export default connect(
state => ({
showEventLog: state.eventLog.visible,
}),
{
onKeyDown,
}
)(ProxyAppMain)
.submit();'>
| [no description] | |
blob: 4f165a1e16fa7e46c6e8da6c6c3d519a555c3312 (
plain)