From 4c1fd1aa692f89db1dffd473c5dbb0c9e02e9694 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Thu, 30 Apr 2026 17:23:08 -0400 Subject: [PATCH] don't show email if no newsletter mode --- components/Subscribe/SubscribeButton.tsx | 74 ++++++++++++------------ 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/components/Subscribe/SubscribeButton.tsx b/components/Subscribe/SubscribeButton.tsx index 0d66649f..f4c5bfce 100644 --- a/components/Subscribe/SubscribeButton.tsx +++ b/components/Subscribe/SubscribeButton.tsx @@ -138,45 +138,45 @@ export const SubscribeInput = (props: SubscribeProps) => { user={user} /> - {/*{props.newsletterMode && + {props.newsletterMode && user.atprotoSubscribed && - !user.emailSubscribed ? (*/} -
-
Opt in to get updates via email!
-
- { - if (requesting) return; - if (needsLinkConfirmation) { - setLinkModalOpen(true); - return; - } - await sendRequest(false); - }} - > - Get Emails - - } - /> + !user.emailSubscribed ? ( +
+
Opt in to get updates via email!
+
+ { + if (requesting) return; + if (needsLinkConfirmation) { + setLinkModalOpen(true); + return; + } + await sendRequest(false); + }} + > + Get Emails + + } + /> +
-
- {/*) : null}*/} + ) : null} ) : props.newsletterMode ? (
-- 2.51.2