fix(leaderboard): fix leaderboard scheme for questions and streaks

This commit is contained in:
shafin-r
2026-02-22 03:29:01 +06:00
parent a48a50ae77
commit be63ca5ed2
7 changed files with 1454 additions and 1436 deletions

View File

@ -17,6 +17,7 @@ import {
DrawerContent,
DrawerTrigger,
} from "../../components/ui/drawer";
import { useExamConfigStore } from "../../stores/useExamConfigStore";
// ─── Shared blob/dot background (same as break/results screens) ────────────────
const DOTS = [
@ -332,6 +333,7 @@ const PAGE_SIZE = 2;
export const Home = () => {
const user = useAuthStore((state) => state.user);
const navigate = useNavigate();
const { userMetrics } = useExamConfigStore();
const [practiceSheets, setPracticeSheets] = useState<PracticeSheet[]>([]);
const [notStartedSheets, setNotStartedSheets] = useState<PracticeSheet[]>([]);
@ -465,7 +467,7 @@ export const Home = () => {
{/* Streak chip */}
<div className="h-chip streak">
<Flame size={18} style={{ fill: "#fca5a5" }} />
<span>5</span>
<span>{userMetrics.streak}</span>
</div>
{/* Score chip */}