final history polishing

This commit is contained in:
rngsurrounded
2025-03-03 21:32:03 +09:00
parent 9181f77cb0
commit af278e8218
2 changed files with 2 additions and 2 deletions
@@ -86,7 +86,7 @@ const FileSolution: React.FC<FileSolutionProps> = ({
<FileIcon size={28} className="text-black mb-2" /> <FileIcon size={28} className="text-black mb-2" />
<span className="text-sm text-gray-700 font-medium mb-1 font-hse-sans">{fileName}</span> <span className="text-sm text-gray-700 font-medium mb-1 font-hse-sans">{fileName}</span>
<div className="flex items-center mt-2"> <div className="flex flex-col justify-center mt-2">
{existingFileUrl && !selectedFile && ( {existingFileUrl && !selectedFile && (
<a <a
href={existingFileUrl} href={existingFileUrl}
+1 -1
View File
@@ -24,7 +24,7 @@ export const submitTaskSolution = async (
// туповатый костыль но для мвп сойдет // туповатый костыль но для мвп сойдет
if (typeof solution === 'string') { if (typeof solution === 'string') {
const textFile = new File([solution], 'solution.txt', { type: 'text/plain' }); const textFile = new File([solution], 'solution_example.txt', { type: 'text/plain' });
formData.append('content', textFile); formData.append('content', textFile);
} else { } else {
formData.append('content', solution); formData.append('content', solution);