mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 01:37:11 +00:00
final history polishing
This commit is contained in:
+1
-1
@@ -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}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user