-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add not found page and incident message (#16)
- Loading branch information
Showing
3 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import PageTitle from "components/page-title"; | ||
import { useAppLayout } from "containers/app-layout"; | ||
|
||
export function NotFound() { | ||
const navigate = useNavigate(); | ||
const handleGoBack = () => navigate("/", { replace: true }); | ||
|
||
useAppLayout( | ||
() => ({ | ||
pageBgStyle: "bg-white", | ||
headerLeft: <PageTitle onBack={handleGoBack}>Not Found</PageTitle>, | ||
}), | ||
[] | ||
); | ||
|
||
return ( | ||
<> | ||
<div className="grid h-full grid-cols-1 place-content-center"> | ||
<p className="px-10 text-center">Page not found.</p> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26b7b60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
lanco-live-incidents – ./
lanco-live-incidents.vercel.app
lanco-live-incidents-git-main-mytydev.vercel.app
lanco.mytydev.com
lanco-live-incidents-mytydev.vercel.app