From 2d67c4487d662e025fe669b37b708fb0c1a7d64e Mon Sep 17 00:00:00 2001 From: JulesBelveze Date: Mon, 6 Jan 2025 10:59:27 +0100 Subject: [PATCH] [front/components] - refactor: adjust ConnectorPermissionsModal layout using SheetContainer - Wrap options and content tree in new SheetContainer component for improved structure - Simplify button and header layout within modal for enhanced visual coherence - Remove redundant div elements to streamline modal markup --- .../components/ConnectorPermissionsModal.tsx | 108 +++++++++--------- 1 file changed, 55 insertions(+), 53 deletions(-) diff --git a/front/components/ConnectorPermissionsModal.tsx b/front/components/ConnectorPermissionsModal.tsx index fd711cc117121..bc79dadb1f499 100644 --- a/front/components/ConnectorPermissionsModal.tsx +++ b/front/components/ConnectorPermissionsModal.tsx @@ -1,4 +1,4 @@ -import { NotificationType, SheetTitle } from "@dust-tt/sparkle"; +import { NotificationType, SheetContainer, SheetTitle } from "@dust-tt/sparkle"; import { SheetHeader } from "@dust-tt/sparkle"; import { Avatar, @@ -761,10 +761,7 @@ export function ConnectorPermissionsModal({ Manage {getDisplayNameForDataSource(dataSource)} connection - - -
-
+
{(isOAuthProvider(connector.type) || connector.type === "snowflake") && (
- {OptionsComponent && plan && ( - <> -
- Connector options -
-
-
- -
-
- - )} + -
- {CONNECTOR_CONFIGURATIONS[connector.type].selectLabel} -
+ +
+ {OptionsComponent && plan && ( + <> +
+ Connector options +
+
+
+ +
+
+ + )} - - -
-
+ + + +
+
-
+ )}