diff --git a/frontend/src/components/HintBox/HintBox.tsx b/frontend/src/components/HintBox/HintBox.tsx index 32d80df2ec..2d9be2e800 100644 --- a/frontend/src/components/HintBox/HintBox.tsx +++ b/frontend/src/components/HintBox/HintBox.tsx @@ -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"; diff --git a/frontend/src/pages/CodeEditor/CodeEditor.tsx b/frontend/src/pages/CodeEditor/CodeEditor.tsx index 78a1866c32..e8e31602a0 100644 --- a/frontend/src/pages/CodeEditor/CodeEditor.tsx +++ b/frontend/src/pages/CodeEditor/CodeEditor.tsx @@ -835,17 +835,15 @@ const CodeEditor: React.FC = () => { )} - {isHintBoxExpanded && questionData && ( 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 /> )} -