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.
style(frontend): format code and improve dialog titles in approve-reject buttons
Nicholas Tindle62032e6584d0
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.tsxindex 7b6313a316..79ff15d364 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,7 +13,10 @@ 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,@@ -28,7 +31,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) => {@@ -128,9 +131,11 @@ 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>