diff --git a/src/components/FamilySelector.tsx b/src/components/FamilySelector.tsx index c3a1772..0dadc5f 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 }) => { @@ -18,7 +18,7 @@ const FamilySelector: FC = ({ updateFilter }) => { { name: 'Undead', family: '_undead', alt: 'undead family' }, ]; - const handleFamilyClick = (familyName) => { + const handleFamilyClick = (familyName: string) => { updateFilter(familyName); };