-
- {solution.semester_registration?.profile.first_name} {solution.semester_registration?.profile.last_name}
-
-
- updatePoints(index, event.target.value)}
- className={styles.input}
- />
-
-
- {solution.solution ? (
-
-
-
- ) : (
-
-
-
- )}
-
-
-
- {solution.corrected_solution ? (
-
-
-
- ) : (
-
-
-
- )}
-
-
+
+
+ Vzorové riešenie:
+
+ {problem.solution_pdf ? (
+
+
+
+ ) : (
+
+
- ))}
+ )}
+
-
-
+
+
+ Stiahnuť riešenia
+
-
-
+
+
+ {uploadZipFileError && (
+ <>
+
Chyby pri nahrávaní ZIPka:
+
{uploadZipFileErrors}
+ >
+ )}
+
+
+
+ >
)
}
diff --git a/src/utils/useNavigationTrap.ts b/src/utils/useNavigationTrap.ts
index 0cc1a5ce..8268c5e5 100644
--- a/src/utils/useNavigationTrap.ts
+++ b/src/utils/useNavigationTrap.ts
@@ -31,7 +31,7 @@ export const useNavigationTrap = ({shouldBlockNavigation, onNavigate}: Navigatio
}
const pageExit = (e: BeforeUnloadEvent) => {
- e.preventDefault()
+ if (shouldBlockNavigation) e.preventDefault()
}
router.events.on('routeChangeStart', pageNavigate)