Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Revert "style(frontend): format code and improve dialog titles in approve-reject buttons"

Nicholas Tindle75a159db01f9
diff --git a/autogpt_platform/frontend/src/components/admin/marketplace/approve-reject-buttons.tsx b/autogpt_platform/frontend/src/components/admin/marketplace/approve-reject-buttons.tsx
index 79ff15d364..7b6313a316 100644
--- a/autogpt_platform/frontend/src/components/admin/marketplace/approve-reject-buttons.tsx
+++ b/autogpt_platform/frontend/src/components/admin/marketplace/approve-reject-buttons.tsx
@@ -13,10 +13,7 @@ import {
} from "@/components/ui/dialog";
import { Label } from "@/components/ui/label";
import { Textarea } from "@/components/ui/textarea";
-import type {
- StoreSubmission,
- SubmissionStatus,
-} from "@/lib/autogpt-server-api/types";
+import type { StoreSubmission, SubmissionStatus } from "@/lib/autogpt-server-api/types";
import { useRouter } from "next/navigation";
import {
approveAgent,
@@ -31,7 +28,7 @@ export function ApproveRejectButtons({
const router = useRouter();
const [isApproveDialogOpen, setIsApproveDialogOpen] = useState(false);
const [isRejectDialogOpen, setIsRejectDialogOpen] = useState(false);
-
+
const isApproved = version.status === "APPROVED";
const handleApproveSubmit = async (formData: FormData) => {
@@ -131,11 +128,9 @@ export function ApproveRejectButtons({
<Dialog open={isRejectDialogOpen} onOpenChange={setIsRejectDialogOpen}>
<DialogContent>
<DialogHeader>
- <DialogTitle>
- {isApproved ? "Revoke Approved Agent" : "Reject Agent"}
- </DialogTitle>
+ <DialogTitle>{isApproved ? "Revoke Approved Agent" : "Reject Agent"}</DialogTitle>
<DialogDescription>
- {isApproved
+ {isApproved
? "Are you sure you want to revoke approval for this agent? This will remove it from the marketplace."
: "Please provide feedback on why this agent is being rejected."}
</DialogDescription>