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

Commit

Permalink
fix: add Home error boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
korhaliv committed Aug 15, 2019
1 parent ac6dfc9 commit 919be24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 11 additions & 2 deletions renderer/containers/Home.js → renderer/containers/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import {
} from 'reducers/lnd'
import { showError, showNotification } from 'reducers/notification'
import Home from 'components/Home'
import DeleteWalletDialog from './Home/DeleteWalletDialog'
import DeleteWalletDialog from './DeleteWalletDialog'
import AppErrorBoundary from 'components/ErrorBoundary/AppErrorBoundary'

const HomeWrapper = props => (
<>
Expand Down Expand Up @@ -56,7 +57,15 @@ const mapDispatchToProps = {
generateLndConfigFromWallet,
}

export default connect(
const ConnectedHome = connect(
mapStateToProps,
mapDispatchToProps
)(HomeWrapper)

const HomeWithErrorBoundaries = props => (
<AppErrorBoundary>
<ConnectedHome {...props} />
</AppErrorBoundary>
)

export default HomeWithErrorBoundaries
3 changes: 3 additions & 0 deletions renderer/containers/Home/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Home from './Home'

export default Home

0 comments on commit 919be24

Please sign in to comment.