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(() => const renderedTools = useMemo(() =>
displayGroups.map((subcategory) => displayGroups.map((subcategory) =>
renderToolButtons(subcategory, null, handleToolSelect, !isSearching) renderToolButtons(t, subcategory, null, handleToolSelect, !isSearching)
), [displayGroups, handleToolSelect, isSearching] ), [displayGroups, handleToolSelect, isSearching, t]
); );
const handleSearchFocus = () => { const handleSearchFocus = () => {

View File

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