X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fcommon%2FErrorBoundary.js;h=83fdb3e3c6c3035ee596f0987229d23469ad1eaf;hb=31131fc56ecc52ba5ce8aa9854755b22620a7139;hp=4fbc562efd8a82a015a90f376693962b0062fa94;hpb=edd0e97bfdc544114f30bf4c13a929631c44a555;p=alttp.git diff --git a/resources/js/components/common/ErrorBoundary.js b/resources/js/components/common/ErrorBoundary.js index 4fbc562..83fdb3e 100644 --- a/resources/js/components/common/ErrorBoundary.js +++ b/resources/js/components/common/ErrorBoundary.js @@ -1,6 +1,8 @@ import PropTypes from 'prop-types'; import React from 'react'; +import ErrorMessage from './ErrorMessage'; + class ErrorBoundary extends React.Component { constructor(props) { super(props); @@ -21,7 +23,7 @@ class ErrorBoundary extends React.Component { const { children } = this.props; const { error } = this.state; if (error) { - return

error

; + return ; } return children; }