Skip to content

Commit 14beaeb

Browse files
committed
defaults
1 parent a828af3 commit 14beaeb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/routes/stats/npm/index.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import * as d3 from 'd3'
1818
import { useCombobox } from 'downshift'
1919
import { FaAngleRight, FaArrowLeft, FaSpinner } from 'react-icons/fa'
2020
import { HexColorPicker } from 'react-colorful'
21+
import { getLibrary } from '~/libraries'
2122

2223
type NpmStats = {
2324
start: string
@@ -732,7 +733,16 @@ export const Route = createFileRoute('/stats/npm/')({
732733
})
733734
)
734735
.optional()
735-
.default([]),
736+
.default([
737+
{
738+
packages: ['react'],
739+
color: '#4da6d1',
740+
},
741+
{
742+
packages: ['@tanstack/query-core', 'react-query'],
743+
color: '#ff4500',
744+
},
745+
]),
736746
range: z
737747
.enum([
738748
'7-days',

0 commit comments

Comments
 (0)