Skip to content

Commit

Permalink
[frontend] Added error element to router
Browse files Browse the repository at this point in the history
  • Loading branch information
MananGandhi1810 committed Nov 4, 2024
1 parent 3222c05 commit 86e65e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ function App() {
const router = createBrowserRouter([
{
element: <Layout />,
errorElement: (
<p className="w-screen h-full-w-nav flex justify-center align-middle items-center">
Something went wrong
</p>
),
children: [
{
path: "/",
Expand Down

0 comments on commit 86e65e0

Please sign in to comment.