From fd7b755bef86d5b0488b10050af0900d4e99c568 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Tue, 2 Dec 2025 12:15:48 +0700 Subject: [PATCH] feat: refresh list --- .../src/components/layout/continue.provider.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/components/layout/continue.provider.tsx b/apps/frontend/src/components/layout/continue.provider.tsx index 0e5a5660..2602325c 100644 --- a/apps/frontend/src/components/layout/continue.provider.tsx +++ b/apps/frontend/src/components/layout/continue.provider.tsx @@ -32,7 +32,7 @@ export const ContinueProvider: FC = () => { refreshWhenOffline: false, fallbackData: [], }); - const closeModal = useCallback(() => { + const refreshList = useCallback(() => { mutate('/integrations/list'); const url = new URL(window.location.href); url.searchParams.delete('added'); @@ -54,6 +54,7 @@ export const ContinueProvider: FC = () => { return ( p.internalId)} @@ -105,13 +106,22 @@ const ContinueModal: FC<{ added: any; provider: any; integrations: string[]; + refreshList: () => void; }> = (props) => { const modals = useModals(); useEffect(() => { modals.openModal({ title: 'Configure Channel', - children: (close) => , + children: (close) => ( + { + props.refreshList(); + close(); + }} + /> + ), }); }, []);