Skip to content

Commit 51fe37d

Browse files
committed
fix(ui): support Recharts tooltip value types
1 parent 9a90768 commit 51fe37d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/product/GitHubStarHistory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export function GitHubStarHistory({ githubUrl }: GitHubStarHistoryProps) {
160160
itemStyle={{
161161
color: 'var(--color-text-secondary)',
162162
}}
163-
formatter={(value: number | undefined) => [
163+
formatter={value => [
164164
`${value?.toLocaleString() ?? '0'} ${tComponent('githubStarHistory.stars')}`,
165165
tComponent('githubStarHistory.stars'),
166166
]}

0 commit comments

Comments
 (0)