From a4609a417003db7b85719d3be343773c9a048704 Mon Sep 17 00:00:00 2001 From: luandro Date: Fri, 6 Sep 2024 09:19:36 -0300 Subject: [PATCH] style(ui): updated error boundary UI Updated the error boundary UI to use new icons and styles. - Replaced the Icon component with the ExclamationTriangleIcon from the new heroicons package. - Changed the background color of the error boundary to a gradient. - Increased the size of the error icon. - Added an animation to the error icon. - Changed the text of the refresh button to "Return to Home". - Updated the padding of the error boundary. --- src/components/ErrorBoundary.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/ErrorBoundary.jsx b/src/components/ErrorBoundary.jsx index 6053c74..f7faf1f 100644 --- a/src/components/ErrorBoundary.jsx +++ b/src/components/ErrorBoundary.jsx @@ -1,17 +1,17 @@ import React from 'react'; -import { ExclamationTriangleIcon } from '@radix-ui/react-icons'; +import { ExclamationTriangleIcon } from '@heroicons/react/24/solid'; const ErrorBoundary = ({ error }) => ( -
-
- +
+
+

Oops! Something went wrong.

{error?.message || 'An unexpected error occurred.'}