Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

feat: start practice from question bank

Chanson48a95c4feaf2c
diff --git a/web/components/learning/practice/PracticePage.tsx b/web/components/learning/practice/PracticePage.tsx
index 1168fedff..9d8623797 100644
--- a/web/components/learning/practice/PracticePage.tsx
+++ b/web/components/learning/practice/PracticePage.tsx
@@ -16,7 +16,7 @@ import { PracticeImport } from "./PracticeImport";
import { PracticeSession } from "./PracticeSession";
import { PracticeInsights } from "./PracticeInsights";
-/** Shared collections and imports; the library surface omits practice-only tools. */
+/** Shared collections and imports; both surfaces can start a manual practice session. */
export function PracticePage({ mode = "practice" }: { mode?: "practice" | "library" }) {
const search = useSearchParams();
if (mode === "practice" && !search.has("course") && !search.has("question")) return <ReviewHome />;
@@ -264,14 +264,10 @@ function ScopedPracticePage({ mode, initialImport }: { mode: "practice" | "libra
embedded
onChanged={refresh}
mistakesOnly={tab === "mistakes"}
- onPractice={
- libraryOnly
- ? undefined
- : ids => {
- setSession(ids);
- setNotice("");
- }
- }
+ onPractice={ids => {
+ setSession(ids);
+ setNotice("");
+ }}
/>
</div>
</>