summaryrefslogtreecommitdiff
path: root/src/components/ErrorBoundaryFallback.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ErrorBoundaryFallback.js')
-rw-r--r--src/components/ErrorBoundaryFallback.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/components/ErrorBoundaryFallback.js b/src/components/ErrorBoundaryFallback.js
deleted file mode 100644
index b03428e..0000000
--- a/src/components/ErrorBoundaryFallback.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import PropTypes from 'prop-types';
-import React from 'react';
-
-import s0 from './ErrorBoundaryFallback.module.css';
-import SvgGithub from './SvgGithub';
-import SvgYacd from './SvgYacd';
-const yacdRepoIssueUrl = 'https://github.com/haishanh/yacd/issues';
-
-function ErrorBoundaryFallback({ message, detail }) {
- return (
- <div className={s0.root}>
- <div className={s0.yacd}>
- <SvgYacd width={150} height={150} />
- </div>
- {message ? <h1>{message}</h1> : null}
- {detail ? <p>{detail}</p> : null}
- <p>
- <a className={s0.link} href={yacdRepoIssueUrl}>
- <SvgGithub width={16} height={16} />
- haishanh/yacd
- </a>
- </p>
- </div>
- );
-}
-
-ErrorBoundaryFallback.propTypes = {
- message: PropTypes.string,
-};
-
-export default ErrorBoundaryFallback;