Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
yitong241 committed Nov 9, 2024
1 parent 92746a3 commit 899c1f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/HintBox/HintBox.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react";
import { Typography, Button, CircularProgress, Tabs, Tab, Box } from "@mui/material";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { materialDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
import { materialDark } from "react-syntax-highlighter/dist/esm/styles/prism";
import CloseIcon from "@mui/icons-material/Close";
import axios from "axios";
import "./HintBox.scss";
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/pages/CodeEditor/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -835,17 +835,15 @@ const CodeEditor: React.FC = () => {
</div>
)}


{isHintBoxExpanded && questionData && (
<HintBox
questionId={questionId}
onClose={() => setIsHintBoxExpanded(false)}
code={code} // Pass the current code
language={language} // Pass the current language
code={code} // Pass the current code
language={language} // Pass the current language
/>
)}


<Footer />
</div>
);
Expand Down

0 comments on commit 899c1f2

Please sign in to comment.