X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Fcommon%2FErrorBoundary.js;h=83fdb3e3c6c3035ee596f0987229d23469ad1eaf;hb=d4a1005e2c41440a7dba3f238a64e509a2fe6f6f;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