mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-08 04:49:45 -05:00
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
import React from 'react';
|
|
import Translate from '@docusaurus/Translate';
|
|
export default function ErrorPageContent({error, tryAgain}) {
|
|
return (
|
|
<main className="container margin-vert--xl">
|
|
<div className="row">
|
|
<div className="col col--6 col--offset-3">
|
|
<h1 className="hero__title">
|
|
<Translate
|
|
id="theme.ErrorPageContent.title"
|
|
description="The title of the fallback page when the page crashed">
|
|
This page crashed.
|
|
</Translate>
|
|
</h1>
|
|
<p>{error.message}</p>
|
|
<div>
|
|
<button type="button" onClick={tryAgain}>
|
|
<Translate
|
|
id="theme.ErrorPageContent.tryAgain"
|
|
description="The label of the button to try again when the page crashed">
|
|
Try again
|
|
</Translate>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|