From 3ce99ab038c79a2d44e1457ef482f9844af0ca72 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Wed, 30 Sep 2026 15:54:20 +0800 Subject: [PATCH] Final polish --- .../Integrations/Wrappers/DeleteWrapperModal.tsx | 2 +- .../interfaces/Integrations/Wrappers/WrappersTab.tsx | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/DeleteWrapperModal.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/DeleteWrapperModal.tsx index d6c35b2906d..d686c24cfe3 100644 --- a/apps/studio/components/interfaces/Integrations/Wrappers/DeleteWrapperModal.tsx +++ b/apps/studio/components/interfaces/Integrations/Wrappers/DeleteWrapperModal.tsx @@ -82,7 +82,7 @@ export const DeleteWrapperModal = () => { open={selectedWrapper !== undefined} onOpenChange={() => setSelectedWrapperToDelete(null)} > - + {`Delete connection ${selectedWrapper?.server_name}?`} diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/WrappersTab.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/WrappersTab.tsx index 1045d922b68..ee8bdd53437 100644 --- a/apps/studio/components/interfaces/Integrations/Wrappers/WrappersTab.tsx +++ b/apps/studio/components/interfaces/Integrations/Wrappers/WrappersTab.tsx @@ -10,6 +10,7 @@ import { CreateWrapperSheet } from './CreateWrapperSheet' import { WRAPPERS } from './Wrappers.constants' import { wrapperMetaComparator } from './Wrappers.utils' import { WrapperTable } from './WrapperTable' +import { useIsMarketplaceEnabled } from '@/components/interfaces/App/FeaturePreview/FeaturePreviewContext' import { DiscardChangesConfirmationDialog } from '@/components/ui-patterns/Dialogs/DiscardChangesConfirmationDialog' import { DocsButton } from '@/components/ui/DocsButton' import { useFDWsQuery } from '@/data/fdw/fdws-query' @@ -22,6 +23,7 @@ import { useShortcut } from '@/state/shortcuts/useShortcut' export const WrappersTab = () => { const { id } = useParams() const { data: project } = useSelectedProjectQuery() + const isMarketplaceEnabled = useIsMarketplaceEnabled() const [isCreating, setIsCreating] = useQueryState( 'new', @@ -84,10 +86,12 @@ export const WrappersTab = () => { ) : ( <> -
- - setIsCreating(true)} /> -
+ {!isMarketplaceEnabled && ( +
+ + setIsCreating(true)} /> +
+ )} )}