display messages (displaying all of them immediately for now)

This commit is contained in:
Alexander Bentkamp
2022-12-02 09:57:34 +01:00
parent 4acd791fd7
commit 854ac6ee55
3 changed files with 31 additions and 17 deletions
+4 -1
View File
@@ -3,10 +3,12 @@ import '@fontsource/roboto/300.css';
import '@fontsource/roboto/400.css';
import '@fontsource/roboto/500.css';
import '@fontsource/roboto/700.css';
import ReactMarkdown from 'react-markdown';
import { MathJax } from "better-react-mathjax";
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import { Paper, Box, Typography } from '@mui/material';
import { Paper, Box, Typography, Alert } from '@mui/material';
const errorRegex = /<stdin>:1:(?<col>[^:]*): (?<msg>.*)/;
@@ -30,6 +32,7 @@ function Goal({ goal }) {
</List></Box>}
<Typography>Prove:</Typography>
<Typography color="primary" sx={{ ml: 2 }}>{goal.goal}</Typography>
{goal.messages.map((message) => <Alert severity="info" sx={{ mt: 1 }}><MathJax><ReactMarkdown>{message}</ReactMarkdown></MathJax></Alert>)}
</Box>)
}