fix(i18n): unify shared view states
This commit is contained in:
@@ -146,8 +146,8 @@ export default function DashboardView() {
|
||||
loadSummary,
|
||||
{
|
||||
initialData: { stats: null as JobStats | null, overview: null as OverviewAnalytics | null, reminderJobs: [] as ReminderJob[] },
|
||||
errorMessage: "Unable to load dashboard summary data right now.",
|
||||
deps: [],
|
||||
errorMessage: t("dashboardSummaryUnavailableTitle"),
|
||||
deps: [t],
|
||||
},
|
||||
);
|
||||
|
||||
@@ -170,8 +170,8 @@ export default function DashboardView() {
|
||||
loadTrends,
|
||||
{
|
||||
initialData: { analytics: [] as AnalyticsPoint[], tags: [] as TagPoint[], tagTrends: null as TagTrendResponse | null },
|
||||
errorMessage: "Unable to load dashboard trends right now.",
|
||||
deps: [months],
|
||||
errorMessage: t("dashboardTrendsUnavailableTitle"),
|
||||
deps: [months, t],
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user