Skip to content

Commit

Permalink
feat(ui): add "Today I Learn" page to kbar menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Nov 29, 2023
1 parent a8c2626 commit 17b9e82
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/shared/components/kbar/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import {
SquaresFour,
Files,
Books,
ChartPieSlice
ChartPieSlice,
Notebook
} from '@/shared/wrappers/phosphor-icons'
import { getSortedPosts } from '@/shared/lib/get-sorted-posts'
import { KBar } from '@/shared/components/kbar'
Expand Down Expand Up @@ -157,6 +158,15 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
icon: <Note weight="duotone" />,
perform: () => push('/')
},
{
id: 'til',
name: 'Today I Learned',
shortcut: ['b', 'i'],
section: 'Blog',
keywords: 'writing learning progress skills',
icon: <Notebook weight="duotone" />,
perform: () => push('/blog/til')
},
{
id: 'categories',
name: 'Categories',
Expand Down

0 comments on commit 17b9e82

Please sign in to comment.