From dcd9bf6b5eddc5578a8a9e714ebb48db59e2d778 Mon Sep 17 00:00:00 2001 From: "Azmat@qq.com" Date: Wed, 19 Aug 2026 17:55:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=8A=A5=E9=94=99=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E6=94=B9=E6=8E=89=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/App.tsx | 4 ++-- core/frontend/src/components/overlays.tsx | 4 ++-- core/frontend/src/routes/dashboard.tsx | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/core/frontend/src/App.tsx b/core/frontend/src/App.tsx index e02c5ce..190395a 100644 --- a/core/frontend/src/App.tsx +++ b/core/frontend/src/App.tsx @@ -805,7 +805,7 @@ export function App() { function renderPage() { switch (page) { case "dashboard": - return action(() => api.createProduct(payload), "")} />; + return ; case "products": return ( setNotice({ type: "success", text })} onLogout={logout} />; default: - return action(() => api.createProduct(payload), "")} />; + return ; } } diff --git a/core/frontend/src/components/overlays.tsx b/core/frontend/src/components/overlays.tsx index 6e4ae3e..0889b1d 100644 --- a/core/frontend/src/components/overlays.tsx +++ b/core/frontend/src/components/overlays.tsx @@ -100,10 +100,10 @@ export function SettingRow({ title, desc, action, toggle, checked }: { title: st ); } -export function TeamModal({ open, title, subtitle, icon, close, children, footer, dismissable = true }: { +export function TeamModal({ open, title, subtitle = "", icon, close, children, footer, dismissable = true }: { open: boolean; title: string; - subtitle: string; + subtitle?: string; icon: ReactNode; close: () => void; children: ReactNode; diff --git a/core/frontend/src/routes/dashboard.tsx b/core/frontend/src/routes/dashboard.tsx index 521c6c8..2ba112a 100644 --- a/core/frontend/src/routes/dashboard.tsx +++ b/core/frontend/src/routes/dashboard.tsx @@ -102,7 +102,6 @@ export function Dashboard({ userName?: string; loading?: boolean; navigate: NavigateFn; - onCreateProduct?: (payload: unknown) => Promise | void; }) { const [tab, setTab] = useState("all"); const projCount = projectTotal ?? projects.length;