-
-
+
- }
- open={open}
- width={900}
- footer={null}
- onCancel={onCancel}
- maskClosable={false}
- className="top-8"
- styles={{
- body: { padding: "24px" },
- header: { padding: "24px 24px 0 24px", border: "none" },
- }}
- >
-
{children}
-
+
+
{children}
+
+
);
}
diff --git a/ui/litellm-dashboard/src/components/prompts/prompt_editor_view/PublishModal.tsx b/ui/litellm-dashboard/src/components/prompts/prompt_editor_view/PublishModal.tsx
index 411a463c45c..4ca84f8561f 100644
--- a/ui/litellm-dashboard/src/components/prompts/prompt_editor_view/PublishModal.tsx
+++ b/ui/litellm-dashboard/src/components/prompts/prompt_editor_view/PublishModal.tsx
@@ -1,6 +1,13 @@
import React from "react";
-import { Button as TremorButton, Text } from "@tremor/react";
-import { Input, Modal } from "antd";
+import {
+ Dialog,
+ DialogContent,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+} from "@/components/ui/dialog";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
interface PublishModalProps {
visible: boolean;
@@ -20,37 +27,50 @@ const PublishModal: React.FC
= ({
onCancel,
}) => {
return (
-
-
- Cancel
-
-
- Publish
-
-
- ]}
+ onOpenChange={(open) => (!open ? onCancel() : undefined)}
>
-