Skip to content

Commit a724564

Browse files
committed
more brevo fixing
1 parent 23efaef commit a724564

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

src/components/brevo-email-subscribe/brevo-email-subscribe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const BrevoEmailSubscribe = (props: BrevoEmailSubscribeProps) => {
152152
className="bg-primary hover:bg-primary/90 text-primary-foreground font-medium whitespace-nowrap sib-hide-loader-icon-parent"
153153
>
154154
<Loader2 className="sib-loader sib-hide-loader-icon h-4 w-4 animate-spin" />
155-
Join Waitlist
155+
Join Email List
156156
</Button>
157157
</div>
158158

src/components/marketing/waitlist-subscribe.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
import { BrevoEmailSubscribe } from '@/components/brevo-email-subscribe/brevo-email-subscribe';
1+
'use client';
2+
3+
import { Button } from '../ui/button';
4+
import Link from 'next/link';
25

36
export function WaitlistSubscribeSection() {
7+
const handleClick = () => {
8+
const emailInput = document.getElementById('EMAIL') as HTMLInputElement;
9+
if (emailInput) {
10+
emailInput.focus();
11+
}
12+
};
13+
414
return (
515
<section className="bg-background">
616
<div className="container px-4 md:px-6 mx-auto">
@@ -12,10 +22,9 @@ export function WaitlistSubscribeSection() {
1222
Be among the first to access Agentsmith and get 50% off your first year.
1323
</p>
1424
<div className="max-w-md mx-auto">
15-
<BrevoEmailSubscribe
16-
trackingLocation="waitlist-subscribe"
17-
form="agentsmithInitialLanding"
18-
/>
25+
<Button onClick={handleClick} asChild>
26+
<Link href="/#join-waitlist">Join the Waitlist</Link>
27+
</Button>
1928
</div>
2029
</div>
2130
</div>

0 commit comments

Comments
 (0)