Skip to content

Commit

Permalink
feat(ui): add personal links section on kbar modal
Browse files Browse the repository at this point in the history
Add dotfiles and bookshelf links
  • Loading branch information
mateusfg7 committed Jul 30, 2023
1 parent cf1bcd6 commit 6b94905
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/shared/components/kbar/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import {
TreeStructure,
ChartLine,
User,
SquaresFour
SquaresFour,
Files,
Books
} from '@/shared/wrappers/phosphor-icons'
import { getSortedPosts } from '@/shared/lib/get-sorted-posts'
import { KBar } from '@/shared/components/kbar'
Expand Down Expand Up @@ -183,6 +185,29 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
...postsAsAction
]

const personalLinksActions: Action[] = [
{
id: 'out-dotfiles',
name: 'My Manjaro Dotfiles',
section: 'Personal Links',
keywords: 'linux config setup',
icon: <Files weight="duotone" />,
perform: () =>
window.open('https://github.com/mateusfg7/dotfiles', '_blank')
},
{
id: 'out-bookshelf',
name: 'My Bookshelf',
section: 'Personal Links',
keywords: 'books library',
icon: <Books weight="duotone" />,
perform: () =>
window.open(
'https://www.skoob.com.br/estante/livros/todos/8289961',
'_blank'
)
}
]
const websiteInformationActions: Action[] = [
{
id: 'out-repo',
Expand Down Expand Up @@ -266,6 +291,7 @@ export function CustomKBarProvider({ children }: { children: ReactNode }) {
...navigationActions,
...blogActions,
...projectsActions,
...personalLinksActions,
...websiteInformationActions,
...themeActions
]
Expand Down

0 comments on commit 6b94905

Please sign in to comment.