chore(build): refactor codebase for production

This commit is contained in:
shafin-r
2026-03-12 02:39:34 +06:00
parent 121cc2bf71
commit bd35f6a852
123 changed files with 3501 additions and 3254 deletions

View File

@ -491,7 +491,9 @@ export const Lessons = () => {
setLessonLoading(true);
const authStorage = localStorage.getItem("auth-storage");
if (!authStorage) return;
const {
// @ts-ignore
state: { token },
} = JSON.parse(authStorage) as { state?: { token?: string } };
if (!token) return;
@ -631,7 +633,7 @@ export const Lessons = () => {
lesson={lesson}
index={i}
searchQuery={searchQuery}
onClick={() => handleLessonClick(lesson.id)}
onClick={() => handleLessonClick(lesson.id, lesson.title)}
/>
))}
</div>