From b6705059564f7323939c39e6c55d74acd39d466a Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Mon, 23 Mar 2026 19:34:11 +0000 Subject: [PATCH] Fix TypeScript build errors - HelpPage: remove unused navigate import - AdminClientsPage: align state type with API response (hasCustomTemplate vs hasCustom) Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/HelpPage.tsx | 2 -- frontend/src/pages/admin/AdminClientsPage.tsx | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/HelpPage.tsx b/frontend/src/pages/HelpPage.tsx index 4992092..98fbdec 100644 --- a/frontend/src/pages/HelpPage.tsx +++ b/frontend/src/pages/HelpPage.tsx @@ -1,5 +1,4 @@ import { useState } from 'react' -import { useNavigate } from 'react-router-dom' import { useAuthStore } from '../stores/useAuthStore' // ── Section types ────────────────────────────────────────────────────────────── @@ -365,7 +364,6 @@ const SECTIONS: Section[] = [ // ── Page ─────────────────────────────────────────────────────────────────────── export default function HelpPage() { - const navigate = useNavigate() const user = useAuthStore(s => s.user) const isAdmin = user?.role === 'admin' const [activeId, setActiveId] = useState('overview') diff --git a/frontend/src/pages/admin/AdminClientsPage.tsx b/frontend/src/pages/admin/AdminClientsPage.tsx index 6f0d7f8..360044e 100644 --- a/frontend/src/pages/admin/AdminClientsPage.tsx +++ b/frontend/src/pages/admin/AdminClientsPage.tsx @@ -182,7 +182,7 @@ export default function AdminClientsPage() { // ── Export template per-client ───────────────────────────────────────────────── function ClientExportTemplate({ clientId }: { clientId: string }) { - const [data, setData] = useState<{ template: ExportTemplateColumn[]; hasCustom: boolean; fields: string[] } | null>(null) + const [data, setData] = useState<{ template: ExportTemplateColumn[]; hasCustomTemplate: boolean; fields: string[] } | null>(null) useEffect(() => { getClientExportTemplate(clientId).then(setData).catch(() => {}) @@ -198,8 +198,8 @@ function ClientExportTemplate({ clientId }: { clientId: string }) { Export CSV template detectClientExportTemplate(clientId, file)} onSave={async tpl => { await saveClientExportTemplate(clientId, tpl); await reload() }}