Merge pull request #2968 from phyzical/bugfix/2520

added pre tags to support \n
This commit is contained in:
hydroflame 2022-03-01 10:56:32 -05:00 committed by GitHub
commit d721c1e65a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,7 +42,9 @@ export function PromptManager(): React.ReactElement {
<>
{prompt != null && (
<Modal open={true} onClose={close}>
<Typography>{prompt.txt}</Typography>
<pre>
<Typography>{prompt.txt}</Typography>
</pre>
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', paddingTop: '10px' }}>
<Button style={{ marginRight: 'auto' }} onClick={yes}>Yes</Button>
<Button onClick={no}>No</Button>