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

@@ -53,7 +53,7 @@ export function NavigatorProvider({ initial, children }: { initial: Route; child
const root = stack[0].name;
return {
route: stack[stack.length - 1],
tab: ['home', 'map', 'ask', 'subscription', 'profile'].includes(root) ? (root as TabName) : null,
tab: ['home', 'lessons', 'ask', 'subscription', 'profile'].includes(root) ? (root as TabName) : null,
canGoBack: stack.length > 1,
push,
replace,