-
Notifications
You must be signed in to change notification settings - Fork 2
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 #507 from NYPL/SFR-1944/add-error-handling-read-page
SFR-1944: Add error handling for invalid read data
- Loading branch information
Showing
3 changed files
with
31 additions
and
12 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
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 |
---|---|---|
@@ -1,21 +1,34 @@ | ||
import { TemplateAppContainer } from "@nypl/design-system-react-components"; | ||
import React from "react"; | ||
import DrbBreakout from "../components/DrbBreakout/DrbBreakout"; | ||
import Layout from "../components/Layout/Layout"; | ||
import Link from "../components/Link/Link"; | ||
|
||
const NotFound404 = () => ( | ||
<Layout> | ||
<h1>404 Not Found</h1> | ||
const NotFound404 = () => { | ||
const contentPrimaryElement = ( | ||
<> | ||
<h1>404 Not Found</h1> | ||
|
||
<p>We're sorry...</p> | ||
<p>We're sorry...</p> | ||
|
||
<p>The page you were looking for doesn't exist.</p> | ||
<p>The page you were looking for doesn't exist.</p> | ||
|
||
<p> | ||
Search | ||
<Link to="/">Digital Research Books Beta</Link> | ||
{"."} | ||
</p> | ||
</Layout> | ||
); | ||
<p> | ||
Search | ||
<Link to="/">Digital Research Books Beta</Link> | ||
{"."} | ||
</p> | ||
</> | ||
); | ||
|
||
return ( | ||
<Layout> | ||
<TemplateAppContainer | ||
breakout={<DrbBreakout />} | ||
contentPrimary={contentPrimaryElement} | ||
/> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default NotFound404; |