diff options
Diffstat (limited to 'front/odiparpack/app/containers/NotFound/NotFound.js')
| -rw-r--r-- | front/odiparpack/app/containers/NotFound/NotFound.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/front/odiparpack/app/containers/NotFound/NotFound.js b/front/odiparpack/app/containers/NotFound/NotFound.js new file mode 100644 index 0000000..4662a06 --- /dev/null +++ b/front/odiparpack/app/containers/NotFound/NotFound.js @@ -0,0 +1,33 @@ +import React from 'react'; +import { Helmet } from 'react-helmet'; +import brand from 'ba-api/brand'; +import { Route } from 'react-router-dom'; +import { ErrorWrap } from 'ba-components'; + +const title = brand.name + ' - Page Not Found'; +const description = brand.desc; + +const NotFound = () => ( + <Route + render={({ staticContext }) => { + if (staticContext) { + staticContext.status = 404; // eslint-disable-line + } + return ( + <div> + <Helmet> + <title>{title}</title> + <meta name="description" content={description} /> + <meta property="og:title" content={title} /> + <meta property="og:description" content={description} /> + <meta property="twitter:title" content={title} /> + <meta property="twitter:description" content={description} /> + </Helmet> + <ErrorWrap title="404" desc="Oops, Page Not Found :(" /> + </div> + ); + }} + /> +); + +export default NotFound; |
