mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
minor fixes
This commit is contained in:
@@ -31,10 +31,9 @@ export const Header = () => {
|
|||||||
|
|
||||||
<div className="flex items-center gap-4">
|
<div className="flex items-center gap-4">
|
||||||
<Link
|
<Link
|
||||||
to="/docs"
|
to="/docs/"
|
||||||
className="text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors flex items-center gap-1"
|
className="text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors flex items-center gap-1"
|
||||||
>
|
>
|
||||||
<FileText className="h-4 w-4" />
|
|
||||||
Обучающие материалы
|
Обучающие материалы
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
|
|||||||
@@ -47,14 +47,12 @@ const CompetitionSession = () => {
|
|||||||
queryKey: ['solutionHistory', competitionId, taskId]
|
queryKey: ['solutionHistory', competitionId, taskId]
|
||||||
});
|
});
|
||||||
|
|
||||||
// Start the reload countdown
|
|
||||||
setIsReloading(true);
|
setIsReloading(true);
|
||||||
|
|
||||||
// Schedule the page reload
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
navigate(`/competition/${competitionId}/tasks/${taskId}`, { replace: true });
|
window.location.reload()
|
||||||
setIsReloading(false);
|
setIsReloading(false);
|
||||||
}, 5000);
|
}, 2500);
|
||||||
},
|
},
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
console.error("Error submitting solution:", error);
|
console.error("Error submitting solution:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user