Refactor code

This commit is contained in:
2026-02-03 13:12:31 +01:00
parent 8572e22c5d
commit 531bb8750e
23 changed files with 106 additions and 48 deletions

View File

@ -3,7 +3,7 @@
import { useEffect } from "react";
// Global error UI for the app router segment.
export default function Error({
export default function ErrorPage({
error,
reset,
}: {
@ -27,6 +27,7 @@ export default function Error({
<div className="flex justify-center gap-4 pt-2">
<button
type="button"
onClick={reset}
className="rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition"
>