feat(error): add error handling on test screen

This commit is contained in:
shafin-r
2026-02-07 20:21:47 +06:00
parent c9db96f97f
commit 8cfcb11f0a
4 changed files with 52 additions and 48 deletions

View File

@ -18,9 +18,12 @@ import {
} from "../../components/ui/card";
import { Button } from "../../components/ui/button";
import { useNavigate } from "react-router-dom";
import { useExamConfigStore } from "../../stores/useExamConfigStore";
export const Practice = () => {
const navigate = useNavigate();
const userXp = useExamConfigStore.getState().userXp;
return (
<main className="h-fit max-w-7xl mx-auto px-8 sm:px-6 lg:px-8 py-8 space-y-4">
<header className="flex justify-between items-center">
@ -29,7 +32,7 @@ export const Practice = () => {
</div>
<div className="bg-purple-100 rounded-full w-fit py-2 px-4 flex items-center gap-2">
<div className="h-2 w-2 bg-linear-to-br from-purple-400 to-purple-500 rounded-full"></div>
<span className="font-satoshi-bold text-md">0</span>
<span className="font-satoshi-bold text-md">{userXp}</span>
</div>
</header>
<section>