import React, { Component } from 'react'
import PropTypes from 'prop-types'
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'
import Modal from './Modal/Modal'
class ProxyAppMain extends Component {
componentWillMount() {
window.addEventListener('keydown', this.props.onKeyDown);
}
componentWillUnmount() {
window.removeEventListener('keydown', this.props.onKeyDown);
}
render() {
const { showEventLog } = this.props
return (
blob: e0413d1451c17b10daba3f09f61c0818fc5143fe (
plain)