Built error section, needs to be on a few pages.

This commit is contained in:
2018-11-25 22:03:38 +11:00
parent 83369773cd
commit 88cd1a9a53
11 changed files with 183 additions and 15 deletions

View File

@ -25,17 +25,16 @@ import React from 'react';
import { withLanguage} from '@public/language/Language';
import Page, { PageBoundary } from '@components/page/Page';
import { ClearSection} from '@components/section/Section';
import { ClearSection } from '@components/section/Section';
import ErrorSection from '@sections/error/ErrorSection';
import { Title } from '@objects/typography/Typography';
export default withLanguage(props => {
let { className, lang } = props;
let { className, error, lang } = props;
return (
<Page className={`c-error-page ${className||""}`} title={lang.pages.error.title}>
<Page className={`c-error-page ${className||""}`} title={ lang.pages.error.title }>
<ClearSection />
<PageBoundary>
<Title className="u-text-center">{ lang.pages.error.body }</Title>
</PageBoundary>
<ErrorSection error={ error || lang.pages.error.body } />
<ClearSection />
</Page>
);