Refactor code
This commit is contained in:
@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user