Skip to content

Commit

Permalink
fix: update tooltip keys in Dashboard for consistency in statistics d…
Browse files Browse the repository at this point in the history
…isplay
  • Loading branch information
songquanpeng committed Feb 2, 2025
1 parent 94479c2 commit 4dbc2ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/default/src/pages/Dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ const Dashboard = () => {
t('dashboard.charts.requests.tooltip'),
]}
labelFormatter={(label) =>
`${t('dashboard.tooltip.date')}: ${formatDate(label)}`
`${t('dashboard.statistics.tooltip.date')}: ${formatDate(label)}`
}
/>
<Line
Expand Down Expand Up @@ -325,7 +325,7 @@ const Dashboard = () => {
t('dashboard.charts.quota.tooltip'),
]}
labelFormatter={(label) =>
`${t('dashboard.tooltip.date')}: ${formatDate(label)}`
`${t('dashboard.statistics.tooltip.date')}: ${formatDate(label)}`
}
/>
<Line
Expand Down Expand Up @@ -377,7 +377,7 @@ const Dashboard = () => {
t('dashboard.charts.tokens.tooltip'),
]}
labelFormatter={(label) =>
`${t('dashboard.tooltip.date')}: ${formatDate(label)}`
`${t('dashboard.statistics.tooltip.date')}: ${formatDate(label)}`
}
/>
<Line
Expand Down Expand Up @@ -422,7 +422,7 @@ const Dashboard = () => {
boxShadow: '0 2px 8px rgba(0,0,0,0.1)',
}}
labelFormatter={(label) =>
`${t('dashboard.tooltip.date')}: ${formatDate(label)}`
`${t('dashboard.statistics.tooltip.date')}: ${formatDate(label)}`
}
/>
<Legend
Expand Down

0 comments on commit 4dbc2ad

Please sign in to comment.