theme.palette.console.contrastText,
- background: (theme) => theme.palette.console.background,
- padding: '10px',
- width: '100%',
- height: '100%',
- overflowY: 'auto',
- position: 'relative',
- }}
- >
-
- {run.stdout && (
- theme.palette.console.contrastText,
- fontFamily: 'Consolas, "Liberation Mono", Menlo, Courier, monospace',
- fontSize: '12px',
- height: '100%',
- position: 'absolute',
- width: '100%',
- whiteSpace: 'pre-wrap',
- wordBreak: 'break-all',
- }}
- >
- {run.stdout}
-
- )}
- {run.stderr && (
- theme.palette.console.contrastText,
- fontFamily: 'Consolas, "Liberation Mono", Menlo, Courier, monospace',
- fontSize: '12px',
- height: '100%',
- position: 'absolute',
- width: '100%',
- whiteSpace: 'pre-wrap',
- wordBreak: 'break-all',
- }}
- >
- {run.stderr}
-
- )}
-
-
- );
- }
-}
+ return (
+ theme.palette.console.contrastText,
+ background: (theme) => theme.palette.console.background,
+ padding: '10px',
+ width: '100%',
+ height: '100%',
+ overflowY: 'auto',
+ position: 'relative',
+ }}
+ >
+
+ {run.stdout && (
+ theme.palette.console.contrastText,
+ fontFamily: 'Consolas, "Liberation Mono", Menlo, Courier, monospace',
+ fontSize: '12px',
+ height: '100%',
+ position: 'absolute',
+ width: '100%',
+ whiteSpace: 'pre-wrap',
+ wordBreak: 'break-all',
+ }}
+ >
+ {run.stdout}
+
+ )}
+ {run.stderr && (
+ theme.palette.console.contrastText,
+ fontFamily: 'Consolas, "Liberation Mono", Menlo, Courier, monospace',
+ fontSize: '12px',
+ height: '100%',
+ position: 'absolute',
+ width: '100%',
+ whiteSpace: 'pre-wrap',
+ wordBreak: 'break-all',
+ }}
+ >
+ {run.stderr}
+
+ )}
+
+
+ );
+};
Console.propTypes = {
run: PropTypes.object.isRequired
};
-export default Console;
+export default observer(Console);
diff --git a/src/app/Input.js b/src/app/Input.js
index cfc71c2..3be0fef 100644
--- a/src/app/Input.js
+++ b/src/app/Input.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { observer } from 'mobx-react';
+import { observer } from 'mobx-react-lite';
import PropTypes from 'prop-types';
import Button from '@mui/material/Button';
import AlignmentCard, { FinalAlignmentCard } from './AlignmentCard';
@@ -256,9 +256,6 @@ const Input = ({ run }) => {
);
};
-//