From f1d3631cdd8c77d7057310645f40ef484bdf959f Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 30 Sep 2025 08:32:38 +0000 Subject: [PATCH] Add link/unlink handlers cgen-ce743419b46b46339f2974fb53784ad9 --- client/pages/Dashboard.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index 8c810935..9769a611 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -280,6 +280,24 @@ export default function Dashboard() { } }; + const handleLinkProvider = async (provider: ProviderKey) => { + setConnectionAction(`${provider}-link`); + try { + await linkProvider(provider); + } finally { + setConnectionAction(null); + } + }; + + const handleUnlinkProvider = async (provider: ProviderKey) => { + setConnectionAction(`${provider}-unlink`); + try { + await unlinkProvider(provider); + } finally { + setConnectionAction(null); + } + }; + const handleQuickAction = async (actionTitle: string) => { switch (actionTitle) { case "Start New Project":