From 70c2a3aa9eff907e890b9ffe0f61435b2be9ac22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Fri, 17 Apr 2026 01:30:16 -0400 Subject: [PATCH] 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. --- src/renderer/views/SidebarView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/views/SidebarView.tsx b/src/renderer/views/SidebarView.tsx index 5198c277..b0e02e8c 100644 --- a/src/renderer/views/SidebarView.tsx +++ b/src/renderer/views/SidebarView.tsx @@ -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({