Skip to content

Commit 9c7498e

Browse files
Merge branch 'main' into main
2 parents a4dad82 + 0d61918 commit 9c7498e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/pages/EditorComponent.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const OutputLayout = styled("div")(({ theme }) => ({
6060
backgroundColor: theme.palette.background.paper,
6161
height: "50vh",
6262
margin: "1rem 0",
63+
overflow: "auto",
6364
border: `2px solid ${theme.palette.divider}`,
6465
borderRadius: "1rem",
6566
"@media (min-width: 1024px)": {
@@ -73,6 +74,10 @@ const WelcomeText = styled("span")(({ theme }) => ({
7374
fontWeight: "bold",
7475
}));
7576

77+
const decodeFormat = (data) => {
78+
return data ? atob(data).split("\n") : [];
79+
}
80+
7681
function EditorComponent() {
7782
const [code, setCode] = useState("");
7883
const [output, setOutput] = useState([]);

0 commit comments

Comments
 (0)