mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-10 02:15:11 +00:00
Add error message paragraph
This commit is contained in:
parent
1f5493325c
commit
51c0c98faa
|
@ -22,16 +22,14 @@ export class ErrorPage extends Component<any, any> {
|
|||
? i18n.t("error_page_title")
|
||||
: i18n.t("not_found_page_title")}
|
||||
</h1>
|
||||
<p className="p-4">
|
||||
{errorPageData ? (
|
||||
<T i18nKey="error_page_paragraph" class="d-inline">
|
||||
#<a href="https://lemmy.ml/c/lemmy_support">#</a>#
|
||||
<a href="https://matrix.to/#/#lemmy-space:matrix.org">#</a>#
|
||||
</T>
|
||||
) : (
|
||||
i18n.t("not_found_page_message")
|
||||
)}
|
||||
</p>
|
||||
{errorPageData ? (
|
||||
<T i18nKey="error_page_paragraph" className="p-4" parent="p">
|
||||
#<a href="https://lemmy.ml/c/lemmy_support">#</a>#
|
||||
<a href="https://matrix.to/#/#lemmy-space:matrix.org">#</a>#
|
||||
</T>
|
||||
) : (
|
||||
<p>{i18n.t("not_found_page_message")}</p>
|
||||
)}
|
||||
{!errorPageData && (
|
||||
<Link to="/" replace>
|
||||
{i18n.t("not_found_return_home_button")}
|
||||
|
@ -57,7 +55,13 @@ export class ErrorPage extends Component<any, any> {
|
|||
</>
|
||||
)}
|
||||
{errorPageData?.error && (
|
||||
<strong className="d-block">Error Code: {errorPageData.error}</strong>
|
||||
<T
|
||||
i18nKey="error_code_message"
|
||||
parent="p"
|
||||
interpolation={{ error: errorPageData.error }}
|
||||
>
|
||||
#<strong className="text-danger">#</strong>#
|
||||
</T>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue