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:
1 parent
cad17b4d45
commit
70c2a3aa9e
1 file changed
+2
-1
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user