import React from 'react' import Router from 'component/router' import Header from 'component/header'; import ErrorModal from 'component/errorModal' import DownloadingModal from 'component/downloadingModal' import UpgradeModal from 'component/upgradeModal' import {Line} from 'rc-progress'; class App extends React.Component { componentWillMount() { document.addEventListener('unhandledError', (event) => { this.props.alertError(event.detail); }); if (!this.props.upgradeSkipped) { this.props.checkUpgradeAvailable() } } render() { const { currentPage, modal, headerLinks, searchTerm, } = this.props const searchQuery = (currentPage == 'discover' && searchTerm ? searchTerm : '') return
{ alert('header search'); }} onSubmit={() => { alert('header submit'); }} links={headerLinks} />
{modal == 'upgrade' && } {modal == 'downloading' && } {modal == 'error' && }
} } export default App