diff --git a/src/features/quote/components/AuthorInfo.jsx b/src/features/quote/components/AuthorInfo.jsx
index 612e9924..942da815 100644
--- a/src/features/quote/components/AuthorInfo.jsx
+++ b/src/features/quote/components/AuthorInfo.jsx
@@ -1,4 +1,5 @@
-import { MdPerson, MdOpenInNew } from 'react-icons/md';
+import { MdPerson } from 'react-icons/md';
+import { HiMiniArrowUpRight } from 'react-icons/hi2';
import { Tooltip } from 'components/Elements';
import { useT } from 'contexts';
import QuoteButtons from './QuoteButtons';
@@ -39,7 +40,20 @@ export default function AuthorInfo({
{author ? (
-
{author}
+ {hasLink ? (
+
+ {author}
+
+
+ ) : (
+
{author}
+ )}
{authorOccupation && authorOccupation !== 'Unknown' && (
{authorOccupation}
)}
@@ -52,19 +66,6 @@ export default function AuthorInfo({
)}
- {hasLink && (
-
-
-
-
-
- )}
{
+ captureException(error);
+ setShowReport(false);
+ };
+
+ const title = variables.getMessage
+ ? variables.getMessage('error_boundary.title')
+ : 'An error occurred';
+ const message = variables.getMessage
+ ? variables.getMessage('error_boundary.message')
+ : 'Something went wrong. Please try refreshing the page.';
+ const reportButton = variables.getMessage
+ ? variables.getMessage('error_boundary.report_button')
+ : 'Report Error';
+ const sentSuccessfully = variables.getMessage
+ ? variables.getMessage('error_boundary.sent_successfully')
+ : 'Report sent successfully';
+ const supportDiscord = variables.getMessage
+ ? variables.getMessage('error_boundary.support_discord')
+ : 'Get Support on Discord';
+
+ return (
+
+
+
{title}
+
{message}
+ {error?.message && (
+
+ Error Details
+ {error.message}
+
+ )}
+
+
+
+ );
+}
diff --git a/src/router/routes.jsx b/src/router/routes.jsx
index a21b0dcb..d9243678 100644
--- a/src/router/routes.jsx
+++ b/src/router/routes.jsx
@@ -1,6 +1,7 @@
import { lazy } from 'react';
import { Navigate } from 'react-router';
import App from '../App';
+import ErrorElement from './ErrorElement';
// Lazy load tab components
const Settings = lazy(() => import('../features/misc/views/Settings'));
@@ -19,6 +20,7 @@ export const routes = [
{
path: '/',
element: ,
+ errorElement: ,
children: [
{
index: true,