Skip to content

Commit

Permalink
somewhat better error page
Browse files Browse the repository at this point in the history
  • Loading branch information
Herkarl committed Jul 4, 2024
1 parent ee3faab commit 1cab0ef
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/components/ErrorPage/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Fragment } from 'react'
import { Title } from 'react-head'
import { Link } from 'react-router-dom'

import { Translate, English, Swedish } from '../Translate'

Expand All @@ -11,9 +12,17 @@ export const ErrorPage = ({ error }) => (
<header key="header">
<div className="header-inner">
<div className="row">
<div className="header-left col-md-2"></div>
<div className="header-left col-md-2">
<Link to="/">
{'« '}
<Translate>
<English>Back</English>
<Swedish>Tillbaka</Swedish>
</Translate>
</Link>
</div>
<div className="col-md-8">
<h2>{error.code} {error.message}</h2>
<h2>{error.code} - {error.message}</h2>
</div>
<div className="header-right col-md-2"></div>
</div>
Expand Down

0 comments on commit 1cab0ef

Please sign in to comment.