fix(renderer): type SidebarView t prop as TranslationFn

`t` is invoked with a two-arg `(key, fallback)` signature elsewhere;
use the shared `TranslationFn` type so those call sites compile.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-17 01:30:16 -04:00
1 parent cad17b4d45
commit 70c2a3aa9e
1 file changed
+2 -1
+2 -1
View File
@@ -8,6 +8,7 @@ import {
Trash,
} from "../components/ui/icons";
import type { CompanyRecord, ProfileSnapshot, SectionId } from "@shared/types";
import type { TranslationFn } from "../i18n";
import { SectionButton } from "../components/ui";
import { NEW_ENTITY_ID } from "../lib/constants";
@@ -31,7 +32,7 @@ interface SidebarViewProps {
setCompany: (companyId: string) => void;
deleteCompany: (companyId: string) => void;
setCommandPaletteOpen: (value: boolean) => void;
t: (key: string) => string;
t: TranslationFn;
}
export function SidebarView({