mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-29 08:57:18 +02:00
add front end support for optional first paragraph of markdown on err… (#3546)
add front end support for optional first paragraph of markdown on error messgage
This commit is contained in:
parent
f87e138eab
commit
9fc43930bf
4 changed files with 15 additions and 0 deletions
|
@ -8,6 +8,7 @@ import Paper from "@mui/material/Paper";
|
|||
import Stack from "@mui/material/Stack";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import React, { FC } from "react";
|
||||
import Markdown from "markdown-to-jsx";
|
||||
|
||||
export type ErrorPageProps = {
|
||||
data: ErrorPageData;
|
||||
|
@ -26,6 +27,13 @@ export const ErrorPage: FC<ErrorPageProps> = ({ data }) => {
|
|||
{data?.error || "Internal Server Error"}
|
||||
</Alert>
|
||||
</Box>
|
||||
{!!data?.errorMessageFirstParagraph && (
|
||||
<Box sx={{p: 4}}>
|
||||
<Markdown>
|
||||
{data.errorMessageFirstParagraph}
|
||||
</Markdown>
|
||||
</Box>
|
||||
)}
|
||||
{data?.requestId ? (
|
||||
<SectionFooter>
|
||||
<Typography variant="caption">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue