Type fixes

This commit is contained in:
Connor Yoh 2025-08-22 14:23:45 +01:00
parent 56b245271e
commit ae557286c3
2 changed files with 5 additions and 5 deletions

View File

@ -82,8 +82,8 @@ export default function ToolSelector({
const renderedTools = useMemo(() =>
displayGroups.map((subcategory) =>
renderToolButtons(subcategory, null, handleToolSelect, !isSearching)
), [displayGroups, handleToolSelect, isSearching]
renderToolButtons(t, subcategory, null, handleToolSelect, !isSearching)
), [displayGroups, handleToolSelect, isSearching, t]
);
const handleSearchFocus = () => {

View File

@ -11,8 +11,8 @@ import { SubcategoryGroup } from '../../../hooks/useToolSections';
export const renderToolButtons = (
t: TFunction,
subcategory: SubcategoryGroup,
selectedToolKey: String | null,
onSelect: (id: String) => void,
selectedToolKey: string | null,
onSelect: (id: string) => void,
showSubcategoryHeader: boolean = true
) => (
<Box key={subcategory.subcategoryId} w="100%">