From 82bf57ca17960596fb3cd80043ac09503b61d490 Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Fri, 8 Sep 2023 17:31:28 +0200 Subject: [PATCH] use sparkle modal --- .../AssistantBuilderDataSourceModal.tsx | 86 ++----------------- 1 file changed, 5 insertions(+), 81 deletions(-) diff --git a/front/components/AssistantBuilderDataSourceModal.tsx b/front/components/AssistantBuilderDataSourceModal.tsx index 6458b393367a5..89226c71c14f3 100644 --- a/front/components/AssistantBuilderDataSourceModal.tsx +++ b/front/components/AssistantBuilderDataSourceModal.tsx @@ -1,6 +1,4 @@ -import { Button, Cog6ToothIcon, XCircleIcon } from "@dust-tt/sparkle"; -import { Dialog, Transition } from "@headlessui/react"; -import { Fragment } from "react"; +import { Modal } from "@dust-tt/sparkle"; import { WorkspaceType } from "@app/types/user"; @@ -9,88 +7,14 @@ import { PermissionTree } from "./ConnectorPermissionsTree"; export default function AssistantBuilderDataSourceModal({ isOpen, setOpen, -}: // owner, -{ +}: { isOpen: boolean; setOpen: (isOpen: boolean) => void; owner: WorkspaceType; }) { - function closeModal() { - // TODO - setOpen(false); - } - return ( - - - -
- -
-
- - -
-
- ) : ( -
- -
- )} -
- {/* */} -
-
- - -
-
-
-
+ setOpen(false)} hasChanged={false}> +
Hello
+
); }