From e5ac28524b9a54cd8b9ce8ed869cd382fae94843 Mon Sep 17 00:00:00 2001 From: Glazelf Date: Sat, 30 Sep 2023 09:23:36 +0200 Subject: [PATCH] type updateFilter as function --- src/components/FamilySelector.tsx | 2 +- src/components/SynthContainer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FamilySelector.tsx b/src/components/FamilySelector.tsx index 1282d01..646a6b6 100644 --- a/src/components/FamilySelector.tsx +++ b/src/components/FamilySelector.tsx @@ -3,7 +3,7 @@ import React, { FC } from 'react'; interface FamilySelectorProps { - updateFilter: object; + updateFilter: Function; } const FamilySelector: FC = ({ updateFilter }) => { diff --git a/src/components/SynthContainer.tsx b/src/components/SynthContainer.tsx index 8b38ac8..727717e 100644 --- a/src/components/SynthContainer.tsx +++ b/src/components/SynthContainer.tsx @@ -9,7 +9,7 @@ const SynthContainer = () => { const updateFilter = (family: string) => { setFilterFamily(family); - } + }; return (