Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Fix PageError client side rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Nov 21, 2016
1 parent d255024 commit c38895c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions themes/phenomic-theme-base/content/404.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
layout: PageError
route: 404.html
# hero credit: https://www.flickr.com/photos/mypubliclands/16101654539/
hero: https://farm8.staticflickr.com/7559/16101654539_bee5151340_k.jpg
---
<!---
Content here not used, see ``src/layouts/PageError``
Please edit PageError layout instead.
-->
9 changes: 5 additions & 4 deletions themes/phenomic-theme-base/src/layouts/PageError/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import Page from "../Page"

import styles from "./index.css"

const PageError = ({ error, errorText, ...otherProps }) => (
const PageError = ({ error, errorText }) => (
<Page
{ ...otherProps }
// we don't need body content
body={ undefined }
head={{
// hero credit: https://www.flickr.com/photos/mypubliclands/16101654539/
hero: "https://farm8.staticflickr.com/7559/16101654539_bee5151340_k.jpg",
}}
>
<div className={ styles.container }>
<div className={ styles.oops }>{ "😱 Oooops!" }</div>
Expand Down

0 comments on commit c38895c

Please sign in to comment.