Skip to content

Commit

Permalink
fix: fix some types
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Oct 11, 2023
1 parent dc9da85 commit 04061e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/components/categories/categories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ export function Categories() {
functional={false}
icon={<BiSolidHeart />}
id="favorites"
sounds={favoriteSounds}
title="Favorites"
sounds={
favoriteSounds as Array<{
src: string;
label: string;
id: string;
icon: React.ReactNode;
}>
}
/>
)}

Expand Down
2 changes: 1 addition & 1 deletion src/components/category/category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface CategoryProps {
icon: React.ReactNode;
title: string;
id: string;
functional: boolean;
functional?: boolean;
sounds: Array<{
label: string;
src: string;
Expand Down

0 comments on commit 04061e2

Please sign in to comment.