From 898d54cd0034bbb2727bc5b5eaf9d5a4f2a852de Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 9 Dec 2018 13:24:17 +0100 Subject: Add React 16 didCatch/ErrorBoundary component --- src/containers/settings/ServicesScreen.js | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'src/containers/settings/ServicesScreen.js') diff --git a/src/containers/settings/ServicesScreen.js b/src/containers/settings/ServicesScreen.js index c1a133ef7..b70a5506e 100644 --- a/src/containers/settings/ServicesScreen.js +++ b/src/containers/settings/ServicesScreen.js @@ -9,6 +9,7 @@ import ServiceStore from '../../stores/ServicesStore'; import { gaPage } from '../../lib/analytics'; import ServicesDashboard from '../../components/settings/services/ServicesDashboard'; +import ErrorBoundary from '../../components/util/ErrorBoundary'; export default @inject('stores', 'actions') @observer class ServicesScreen extends Component { componentDidMount() { @@ -40,20 +41,22 @@ export default @inject('stores', 'actions') @observer class ServicesScreen exten } return ( - this.deleteService()} - toggleService={toggleService} - isLoading={isLoading} - filterServices={filter} - resetFilter={resetFilter} - goTo={router.push} - servicesRequestFailed={services.allServicesRequest.wasExecuted && services.allServicesRequest.isError} - retryServicesRequest={() => services.allServicesRequest.reload()} - searchNeedle={services.filterNeedle} - /> + + this.deleteService()} + toggleService={toggleService} + isLoading={isLoading} + filterServices={filter} + resetFilter={resetFilter} + goTo={router.push} + servicesRequestFailed={services.allServicesRequest.wasExecuted && services.allServicesRequest.isError} + retryServicesRequest={() => services.allServicesRequest.reload()} + searchNeedle={services.filterNeedle} + /> + ); } } -- cgit v1.2.3-70-g09d2