fix: always set vocab as default tab in analytics page (#4151)
This commit is contained in:
parent
125814650b
commit
3c8a6710fc
1 changed files with 11 additions and 17 deletions
|
|
@ -434,7 +434,9 @@ abstract class AppRoutes {
|
|||
pageBuilder: (context, state) => defaultPageBuilder(
|
||||
context,
|
||||
state,
|
||||
const AnalyticsPage(),
|
||||
const AnalyticsPage(
|
||||
indicator: ProgressIndicatorEnum.wordsUsed,
|
||||
),
|
||||
),
|
||||
routes: [
|
||||
GoRoute(
|
||||
|
|
@ -442,10 +444,8 @@ abstract class AppRoutes {
|
|||
pageBuilder: (context, state) => defaultPageBuilder(
|
||||
context,
|
||||
state,
|
||||
AnalyticsPage(
|
||||
indicator: FluffyThemes.isColumnMode(context)
|
||||
? null
|
||||
: ProgressIndicatorEnum.morphsUsed,
|
||||
const AnalyticsPage(
|
||||
indicator: ProgressIndicatorEnum.morphsUsed,
|
||||
),
|
||||
),
|
||||
redirect: loggedOutRedirect,
|
||||
|
|
@ -473,10 +473,8 @@ abstract class AppRoutes {
|
|||
pageBuilder: (context, state) => defaultPageBuilder(
|
||||
context,
|
||||
state,
|
||||
AnalyticsPage(
|
||||
indicator: FluffyThemes.isColumnMode(context)
|
||||
? null
|
||||
: ProgressIndicatorEnum.wordsUsed,
|
||||
const AnalyticsPage(
|
||||
indicator: ProgressIndicatorEnum.wordsUsed,
|
||||
),
|
||||
),
|
||||
redirect: loggedOutRedirect,
|
||||
|
|
@ -504,10 +502,8 @@ abstract class AppRoutes {
|
|||
pageBuilder: (context, state) => defaultPageBuilder(
|
||||
context,
|
||||
state,
|
||||
AnalyticsPage(
|
||||
indicator: FluffyThemes.isColumnMode(context)
|
||||
? null
|
||||
: ProgressIndicatorEnum.activities,
|
||||
const AnalyticsPage(
|
||||
indicator: ProgressIndicatorEnum.activities,
|
||||
),
|
||||
),
|
||||
redirect: loggedOutRedirect,
|
||||
|
|
@ -536,10 +532,8 @@ abstract class AppRoutes {
|
|||
pageBuilder: (context, state) => defaultPageBuilder(
|
||||
context,
|
||||
state,
|
||||
AnalyticsPage(
|
||||
indicator: FluffyThemes.isColumnMode(context)
|
||||
? null
|
||||
: ProgressIndicatorEnum.level,
|
||||
const AnalyticsPage(
|
||||
indicator: ProgressIndicatorEnum.level,
|
||||
),
|
||||
),
|
||||
redirect: loggedOutRedirect,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue