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.
fix(frontend): waitlist modal copy (#11263)
Ubbe320fb7d83aac
diff --git a/autogpt_platform/frontend/src/app/(platform)/auth/auth-code-error/page.tsx b/autogpt_platform/frontend/src/app/(platform)/auth/auth-code-error/page.tsxindex 160614d960..8091d9520e 100644--- a/autogpt_platform/frontend/src/app/(platform)/auth/auth-code-error/page.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/auth/auth-code-error/page.tsx@@ -44,10 +44,7 @@ export default function AuthErrorPage() {return (<div className="flex h-screen items-center justify-center"><Card className="w-full max-w-md p-8">- <WaitlistErrorContent- onClose={() => router.push("/login")}- closeButtonText="Back to Login"- />+ <WaitlistErrorContent onBackToLogin={() => router.push("/login")} /></Card></div>);diff --git a/autogpt_platform/frontend/src/components/auth/EmailNotAllowedModal.tsx b/autogpt_platform/frontend/src/components/auth/EmailNotAllowedModal.tsxindex 7b4d28d3ae..37e61ab229 100644--- a/autogpt_platform/frontend/src/components/auth/EmailNotAllowedModal.tsx+++ b/autogpt_platform/frontend/src/components/auth/EmailNotAllowedModal.tsx@@ -14,7 +14,7 @@ export function EmailNotAllowedModal({ isOpen, onClose }: Props) {><Dialog.Content><div className="py-4">- <WaitlistErrorContent onClose={onClose} />+ <WaitlistErrorContent /></div></Dialog.Content></Dialog>diff --git a/autogpt_platform/frontend/src/components/auth/WaitlistErrorContent.tsx b/autogpt_platform/frontend/src/components/auth/WaitlistErrorContent.tsxindex be4392e20c..9d64738813 100644--- a/autogpt_platform/frontend/src/components/auth/WaitlistErrorContent.tsx+++ b/autogpt_platform/frontend/src/components/auth/WaitlistErrorContent.tsx@@ -1,50 +1,39 @@import { Button } from "../atoms/Button/Button";import { Text } from "../atoms/Text/Text";-interface WaitlistErrorContentProps {- onClose: () => void;- closeButtonText?: string;- closeButtonVariant?: "primary" | "secondary";+interface Props {+ onBackToLogin?: () => void;}-export function WaitlistErrorContent({- onClose,- closeButtonText = "Close",- closeButtonVariant = "primary",-}: WaitlistErrorContentProps) {+export function WaitlistErrorContent(props: Props) {return (<div className="flex flex-col items-center gap-6">- <Text variant="h3">Join the Waitlist</Text>+ <Text variant="h3">We're in closed beta</Text><div className="flex flex-col gap-4 text-center">- <Text variant="large-medium" className="text-center">- The AutoGPT Platform is currently in closed beta. Your email address- isn't on our current allowlist for early access.- </Text>- <Text variant="body" className="text-center">- Join our waitlist to get notified when we open up access!+ <Text variant="large" className="text-center">+ Looks like your email isn't in our early access list just yet.+ Join the waitlist and we will let you know the moment we open up+ access!</Text></div>- <div className="flex gap-3">+ <div className="flex gap-2"><Button- variant="secondary"onClick={() => {window.open("https://agpt.co/waitlist", "_blank");}}>Join Waitlist</Button>- <Button variant={closeButtonVariant} onClick={onClose}>- {closeButtonText}- </Button>+ {props.onBackToLogin ? (+ <Button variant="secondary" onClick={props.onBackToLogin}>+ Back to Login+ </Button>+ ) : null}</div><div className="flex flex-col gap-2"><Text variant="small" className="text-center text-muted-foreground">- Already signed up for the waitlist? Make sure you're using the- exact same email address you used when signing up.- </Text>- <Text variant="small" className="text-center text-muted-foreground">- If you're not sure which email you used or need help, contact us- at{" "}+ Already joined? Double-check you are using the same email you signed+ up with. Need a hand? Emails us at{" "}<ahref="mailto:[email protected]"className="underline hover:text-foreground"@@ -58,7 +47,7 @@ export function WaitlistErrorContent({rel="noopener noreferrer"className="underline hover:text-foreground">- reach out on Discord+ message us on Discord</a></Text></div>