Phase 6 complete

This commit is contained in:
Joey Yakimowich-Payne 2026-01-13 16:52:57 -07:00
commit 3a22b42492
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
11 changed files with 735 additions and 103 deletions

View file

@ -24,7 +24,17 @@ export const Landing: React.FC<LandingProps> = ({ onGenerate, onCreateManual, on
const [name, setName] = useState('');
const [libraryOpen, setLibraryOpen] = useState(false);
const { quizzes, loading: libraryLoading, error: libraryError, fetchQuizzes, loadQuiz, deleteQuiz } = useQuizLibrary();
const {
quizzes,
loading: libraryLoading,
loadingQuizId,
deletingQuizId,
error: libraryError,
fetchQuizzes,
loadQuiz,
deleteQuiz,
retry: retryLibrary
} = useQuizLibrary();
useEffect(() => {
if (libraryOpen && auth.isAuthenticated) {
@ -169,9 +179,12 @@ export const Landing: React.FC<LandingProps> = ({ onGenerate, onCreateManual, on
onClose={() => setLibraryOpen(false)}
quizzes={quizzes}
loading={libraryLoading}
loadingQuizId={loadingQuizId}
deletingQuizId={deletingQuizId}
error={libraryError}
onLoadQuiz={handleLoadQuiz}
onDeleteQuiz={deleteQuiz}
onRetry={retryLibrary}
/>
</div>
);