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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user