We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d28fae4 + 0d61918 commit 57a0f07Copy full SHA for 57a0f07
1 file changed
src/pages/EditorComponent.js
@@ -59,6 +59,7 @@ const OutputLayout = styled("div")(({ theme }) => ({
59
backgroundColor: theme.palette.background.paper,
60
height: "50vh",
61
margin: "1rem 0",
62
+ overflow: "auto",
63
border: `2px solid ${theme.palette.divider}`,
64
borderRadius: "1rem",
65
"@media (min-width: 1024px)": {
@@ -72,6 +73,10 @@ const WelcomeText = styled("span")(({ theme }) => ({
72
73
fontWeight: "bold",
74
}));
75
76
+const decodeFormat = (data) => {
77
+ return data ? atob(data).split("\n") : [];
78
+}
79
+
80
function EditorComponent() {
81
const [code, setCode] = useState("");
82
const [output, setOutput] = useState([]);
0 commit comments