diff --git a/src/app/(auth)/error.tsx b/src/app/(auth)/error.tsx index 7816187..a5819dc 100644 --- a/src/app/(auth)/error.tsx +++ b/src/app/(auth)/error.tsx @@ -2,8 +2,10 @@ import { Button } from "@/shared/components/ui/button" import { AlertCircle } from "lucide-react" +import { useErrorReport } from "@/shared/hooks/use-error-report" -export default function AuthError({ reset }: { error: Error & { digest?: string }; reset: () => void }) { +export default function AuthError({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) { + useErrorReport(error) return (
diff --git a/src/app/(dashboard)/admin/announcements/[id]/error.tsx b/src/app/(dashboard)/admin/announcements/[id]/error.tsx index da92bec..5cfa30c 100644 --- a/src/app/(dashboard)/admin/announcements/[id]/error.tsx +++ b/src/app/(dashboard)/admin/announcements/[id]/error.tsx @@ -4,9 +4,11 @@ import { AlertCircle } from "lucide-react" import { useTranslations } from "next-intl" import { EmptyState } from "@/shared/components/ui/empty-state" +import { useErrorReport } from "@/shared/hooks/use-error-report" -export default function EditAnnouncementError({ reset }: { error: Error & { digest?: string }; reset: () => void }) { +export default function EditAnnouncementError({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) { const t = useTranslations("announcements") + useErrorReport(error) return (
void }) { +export default function AdminAnnouncementsError({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) { const t = useTranslations("announcements") + useErrorReport(error) return (
void }) { +export default function AdminAttendanceError({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) { + useErrorReport(error) return } diff --git a/src/app/(dashboard)/admin/audit-logs/data-changes/error.tsx b/src/app/(dashboard)/admin/audit-logs/data-changes/error.tsx index ce7b83c..2d12755 100644 --- a/src/app/(dashboard)/admin/audit-logs/data-changes/error.tsx +++ b/src/app/(dashboard)/admin/audit-logs/data-changes/error.tsx @@ -4,14 +4,17 @@ import { AlertCircle } from "lucide-react" import { useTranslations } from "next-intl" import { EmptyState } from "@/shared/components/ui/empty-state" +import { useErrorReport } from "@/shared/hooks/use-error-report" export default function DataChangeLogsError({ + error, reset, }: { error: Error & { digest?: string } reset: () => void }) { const t = useTranslations("audit") + useErrorReport(error) return (
void }) { const t = useTranslations("audit") + useErrorReport(error) return (
void }) { const t = useTranslations("audit") + useErrorReport(error) return (
void }) { const t = useTranslations("audit") + useErrorReport(error) return (
void }) { + useErrorReport(error) return } diff --git a/src/app/(dashboard)/admin/elective/error.tsx b/src/app/(dashboard)/admin/elective/error.tsx index ab189fb..dfff1d6 100644 --- a/src/app/(dashboard)/admin/elective/error.tsx +++ b/src/app/(dashboard)/admin/elective/error.tsx @@ -4,9 +4,11 @@ import { AlertCircle } from "lucide-react" import { useTranslations } from "next-intl" import { EmptyState } from "@/shared/components/ui/empty-state" +import { useErrorReport } from "@/shared/hooks/use-error-report" -export default function AdminElectiveError({ reset }: { error: Error & { digest?: string }; reset: () => void }) { +export default function AdminElectiveError({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) { const t = useTranslations("elective") + useErrorReport(error) return (
void }) { +export default function AdminError({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) { const t = useTranslations("dashboard") + useErrorReport(error) return (
void }): ReactElement { const t = useTranslations("files") + useErrorReport(error) return (
void }): ReactElement { + useErrorReport(error) return (