Skip to content

Commit

Permalink
feat(ui): include statistics page on KBar link list
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Nov 9, 2023
1 parent 7dc810e commit a11b232
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/shared/components/kbar/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import {
User,
SquaresFour,
Files,
Books
Books,
ChartPieSlice
} from '@/shared/wrappers/phosphor-icons'
import { getSortedPosts } from '@/shared/lib/get-sorted-posts'
import { KBar } from '@/shared/components/kbar'
Expand Down Expand Up @@ -55,6 +56,14 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
keywords: 'about me user information info',
icon: <User weight="duotone" />,
perform: () => push('/about')
},
{
id: 'statistics',
name: 'Statistics',
shortcut: ['n', 's'],
keywords: 'statistics github spotify data',
icon: <ChartPieSlice weight="duotone" />,
perform: () => push('/about/statistics')
}
]

Expand Down

0 comments on commit a11b232

Please sign in to comment.