diff --git a/packages/website/src/components/ErrorsViewer.tsx b/packages/website/src/components/ErrorsViewer.tsx
index 3e0a890ee0a6..0789b84d78c0 100644
--- a/packages/website/src/components/ErrorsViewer.tsx
+++ b/packages/website/src/components/ErrorsViewer.tsx
@@ -91,6 +91,18 @@ function ErrorBlock({
);
}
+function SuccessBlock(): JSX.Element {
+ return (
+
+ );
+}
+
export default function ErrorsViewer({
value,
}: ErrorsViewerProps): JSX.Element {
@@ -113,31 +125,37 @@ export default function ErrorsViewer({
return (
- {value?.map(({ group, uri, items }) => {
- return (
-
-
- {group}
- {uri && (
- <>
- {' - '}
-
- docs
-
- >
- )}
-
- {items.map((item, index) => (
-
- ))}
-
- );
- })}
+ {value?.length ? (
+ value.map(({ group, uri, items }) => {
+ return (
+
+
+ {group}
+ {uri && (
+ <>
+ {' - '}
+
+ docs
+
+ >
+ )}
+
+ {items.map((item, index) => (
+
+ ))}
+
+ );
+ })
+ ) : (
+
+
+
+ )}
);
}
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy