From 04061e23c3063279afa493a1e120817f80447840 Mon Sep 17 00:00:00 2001 From: MAZE Date: Wed, 11 Oct 2023 12:24:09 +0330 Subject: [PATCH] fix: fix some types --- src/components/categories/categories.tsx | 9 ++++++++- src/components/category/category.tsx | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/categories/categories.tsx b/src/components/categories/categories.tsx index dfde798..82df73f 100644 --- a/src/components/categories/categories.tsx +++ b/src/components/categories/categories.tsx @@ -45,8 +45,15 @@ export function Categories() { functional={false} icon={} id="favorites" - sounds={favoriteSounds} title="Favorites" + sounds={ + favoriteSounds as Array<{ + src: string; + label: string; + id: string; + icon: React.ReactNode; + }> + } /> )} diff --git a/src/components/category/category.tsx b/src/components/category/category.tsx index c7dda06..9857537 100644 --- a/src/components/category/category.tsx +++ b/src/components/category/category.tsx @@ -6,7 +6,7 @@ interface CategoryProps { icon: React.ReactNode; title: string; id: string; - functional: boolean; + functional?: boolean; sounds: Array<{ label: string; src: string;