fix(nav): improve redirection logic

This commit is contained in:
shafin-r
2025-10-06 19:16:03 +06:00
parent 981fe6973f
commit e1a33d1398
4 changed files with 44 additions and 34 deletions

View File

@ -8,6 +8,7 @@ import BackgroundWrapper from "@/components/BackgroundWrapper";
import { API_URL, getToken } from "@/lib/auth";
import { Loader, RefreshCw, Star, StarHalf } from "lucide-react";
import { useAuthStore } from "@/stores/authStore";
import { FaStar } from "react-icons/fa";
type Subject = {
subject_id: string;
@ -110,11 +111,11 @@ export default function PaperScreen() {
className="w-full border-1 border-[#B0C2DA] py-4 rounded-[10px] px-6 space-y-2 text-left hover:bg-gray-50 transition-colors"
>
<h3 className="text-xl font-medium">{subject.name}</h3>
<p className="text-md font-normal flex">
<Star size={17} />
<Star size={17} />
<Star size={17} />
<Star size={17} />
<p className="text-xl font-medium text-[#113768] flex items-center gap-1">
<FaStar size={15} />
<FaStar size={15} />
<FaStar size={15} />
<FaStar size={15} />
</p>
</button>
</div>