Skip to content

Commit

Permalink
add error page
Browse files Browse the repository at this point in the history
  • Loading branch information
ocitocit committed Oct 17, 2023
1 parent c0b7ba3 commit 93ef790
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions app/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
'use client';

import EmptyState from "@/components/EmptyState";
import { useEffect } from "react";

interface ErrorStateProps {
error: Error
}

const ErrorState: React.FC<ErrorStateProps> = ({
error
}) => {
useEffect(() => {
console.error(error)
}, [error])

return (
<EmptyState
title="Uh Oh"
subTitle="Something went wrong!"
/>
)
}

export default ErrorState;

0 comments on commit 93ef790

Please sign in to comment.