-
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.
Merge pull request #179 from kubapoke/fix/reloading-offer-page
Fix/reloading offer page
- Loading branch information
Showing
4 changed files
with
48 additions
and
28 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,27 @@ | ||
import { Link, useLocation } from 'react-router-dom'; | ||
import { FaExclamationTriangle } from "react-icons/fa"; | ||
|
||
const ErrorPage = () => { | ||
const location = useLocation(); | ||
const { message, status } = location.state || {}; | ||
|
||
return ( | ||
<section className="text-center flex flex-col justify-center items-center h-96"> | ||
<FaExclamationTriangle className="fas text-yellow-400 text-6xl mb-4" /> | ||
<h1 className="text-6xl font-bold mb-4"> | ||
Error {status || 404} | ||
</h1> | ||
<p className="text-xl mb-5"> | ||
{message || "This page does not exist"} | ||
</p> | ||
<Link | ||
to="/" | ||
className="text-white bg-blue-700 hover:bg-blue-900 rounded-md px-3 py-2 mt-4" | ||
> | ||
Go Back | ||
</Link> | ||
</section> | ||
); | ||
}; | ||
|
||
export default ErrorPage; |
This file was deleted.
Oops, something went wrong.
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