mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 16:47:10 +00:00
code review
This commit is contained in:
@@ -12,7 +12,7 @@ interface TaskSolutionProps {
|
||||
answer: string;
|
||||
setAnswer: (value: string) => void;
|
||||
onSubmit: () => void;
|
||||
onHistoryClick: () => void;
|
||||
|
||||
}
|
||||
|
||||
const TaskSolution: React.FC<TaskSolutionProps> = ({
|
||||
@@ -21,7 +21,6 @@ const TaskSolution: React.FC<TaskSolutionProps> = ({
|
||||
answer,
|
||||
setAnswer,
|
||||
onSubmit,
|
||||
onHistoryClick,
|
||||
}) => {
|
||||
const [selectedFile, setSelectedFile] = useState<File | null>(null);
|
||||
const fileInputRef = useRef<HTMLInputElement>(null);
|
||||
@@ -46,7 +45,7 @@ const TaskSolution: React.FC<TaskSolutionProps> = ({
|
||||
<CodeSolution answer={answer} setAnswer={setAnswer} />
|
||||
)}
|
||||
|
||||
<ActionButtons onHistoryClick={onHistoryClick} onSubmit={onSubmit} />
|
||||
<ActionButtons onSubmit={onSubmit} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user