Add section error boundaries, retry banner with stale-while-revalidate, shared skeletons, responsive action layout, and org-switch refetching. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
440 B
TypeScript
14 lines
440 B
TypeScript
import { Card } from '@/components/ui/shared/Card';
|
|
|
|
interface TodaySectionErrorFallbackProps {
|
|
message: string;
|
|
}
|
|
|
|
export function TodaySectionErrorFallback({ message }: TodaySectionErrorFallbackProps) {
|
|
return (
|
|
<Card className="min-h-[120px] flex items-center justify-center border-badge-danger-border/40 bg-badge-danger-bg/20">
|
|
<p className="text-sm text-badge-danger-fg text-center px-4">{message}</p>
|
|
</Card>
|
|
);
|
|
}
|