Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
feat(ui): implement unexpected error UI
Browse files Browse the repository at this point in the history
  • Loading branch information
korhaliv committed Aug 14, 2019
1 parent 3b342c1 commit e0631f7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion renderer/containers/App.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { connect } from 'react-redux'
import { fetchPeers } from 'reducers/peers'
import { setIsWalletOpen } from 'reducers/wallet'
Expand All @@ -10,6 +11,7 @@ import { setModals, modalSelectors } from 'reducers/modal'
import { fetchSuggestedNodes } from 'reducers/channels'
import { initTickers } from 'reducers/ticker'
import App from 'components/App'
import AppErrorBoundary from 'components/App/AppErrorBoundary'

const mapStateToProps = state => ({
isAppReady: appSelectors.isAppReady(state),
Expand All @@ -29,7 +31,15 @@ const mapDispatchToProps = {
fetchSuggestedNodes,
}

export default connect(
const ConnectedApp = connect(
mapStateToProps,
mapDispatchToProps
)(App)

const AppWithErrorBoundaries = props => (
<AppErrorBoundary>
<ConnectedApp {...props} />
</AppErrorBoundary>
)

export default AppWithErrorBoundaries

0 comments on commit e0631f7

Please sign in to comment.