feat: add graceful error recovery with user-friendly error screens and retry options for improved user experience
This commit is contained in:
13
app/share/[id]/error.tsx
Normal file
13
app/share/[id]/error.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
'use client'
|
||||
|
||||
import ErrorDisplay from '@/components/ErrorDisplay'
|
||||
|
||||
export default function ShareError({ reset }: { error: Error; reset: () => void }) {
|
||||
return (
|
||||
<ErrorDisplay
|
||||
title="Dashboard failed to load"
|
||||
message="We couldn't load this public dashboard. It may be temporarily unavailable — try again."
|
||||
onRetry={reset}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user