This commit is contained in:
louiscklaw
2025-04-21 12:15:25 +08:00
parent ac7d3883fd
commit 00a978e55a
67 changed files with 3423 additions and 136 deletions

View File

@@ -39,11 +39,13 @@ function ErrorDetails({ details }: { details: string }): React.JSX.Element {
<Collapse in={expanded}>
<Box sx={{ mt: 1, p: 1, bgcolor: 'background.paper' }}>
<pre>
<Typography variant="body2" component="pre" sx={{ whiteSpace: 'pre-wrap' }}>
{details}
</Typography>
</pre>
<Typography
variant="body2"
component="pre"
sx={{ whiteSpace: 'pre-wrap', fontFamily: 'monospace' }}
>
{details}
</Typography>
</Box>
</Collapse>
</Box>
@@ -72,7 +74,10 @@ function ErrorDisplay({ message, code, details, severity = 'error' }: PropsError
>
<AlertTitle>{code ? `Error ${code}` : 'Error'}</AlertTitle>
<Typography variant="body1" gutterBottom>
<Typography
variant="body1"
gutterBottom
>
{formattedMessage}
</Typography>