fix: fix some types

This commit is contained in:
MAZE 2023-10-11 12:24:09 +03:30
parent dc9da85e68
commit 04061e23c3
2 changed files with 9 additions and 2 deletions

View file

@ -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;
}>
}
/>
)}

View file

@ -6,7 +6,7 @@ interface CategoryProps {
icon: React.ReactNode;
title: string;
id: string;
functional: boolean;
functional?: boolean;
sounds: Array<{
label: string;
src: string;