generated from muhtadeetaron/nextjs-template
feat(screens): implement bookmark and profile screens
This commit is contained in:
@ -79,21 +79,8 @@ export default function PretestPage() {
|
||||
</BackgroundWrapper>
|
||||
);
|
||||
}
|
||||
const { isHydrated, isInitialized, currentExam } = useExam();
|
||||
|
||||
useEffect(() => {
|
||||
console.log(
|
||||
"hydrated:",
|
||||
isHydrated,
|
||||
"initialized:",
|
||||
isInitialized,
|
||||
"exam:",
|
||||
currentExam
|
||||
);
|
||||
}, [isHydrated, isInitialized, currentExam]);
|
||||
|
||||
function handleStartExam() {
|
||||
console.log(id);
|
||||
setCurrentExam(examData);
|
||||
startExam();
|
||||
router.push(`/exam/${id}?time=${metadata?.metadata.duration}`);
|
||||
|
||||
Reference in New Issue
Block a user