Add hints.

This commit is contained in:
Jon Eugster
2022-12-12 12:19:21 +01:00
parent 04c0466fa4
commit 649a5d2dfb
4 changed files with 64 additions and 20 deletions
+1
View File
@@ -35,6 +35,7 @@ function Goal({ goal }) {
<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>)}
{goal.hints.map((message) => <Alert severity="warning" sx={{ mt: 1 }}><MathJax><ReactMarkdown>{message}</ReactMarkdown></MathJax></Alert>)}
</Box>)
}