Lessons tab replaces the map tab: chapter > island > lesson list with the island quiz beside it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 15:46:38 +03:30
parent 838049c469
commit 09ca1a270a
7 changed files with 161 additions and 105 deletions

View File

@@ -1,7 +1,7 @@
/** همه‌ی صفحه‌های اپ و پارامترهایشان. */
export type Route =
| { name: 'home' }
| { name: 'map' }
| { name: 'lessons' }
| { name: 'ask'; lessonId?: number; questionId?: string; prompt?: string }
| { name: 'subscription' }
| { name: 'profile' }
@@ -20,9 +20,9 @@ export type Route =
| { name: 'invoices' }
| { name: 'invite' };
export type TabName = 'home' | 'map' | 'ask' | 'subscription' | 'profile';
export type TabName = 'home' | 'lessons' | 'ask' | 'subscription' | 'profile';
export const TABS: TabName[] = ['home', 'map', 'ask', 'subscription', 'profile'];
export const TABS: TabName[] = ['home', 'lessons', 'ask', 'subscription', 'profile'];
export function isTab(name: Route['name']): name is TabName {
return (TABS as string[]).includes(name);