diff --git a/app/lish/[did]/[publication]/UpgradeModal.tsx b/app/lish/[did]/[publication]/UpgradeModal.tsx index 436acea7..138b4a22 100644 --- a/app/lish/[did]/[publication]/UpgradeModal.tsx +++ b/app/lish/[did]/[publication]/UpgradeModal.tsx @@ -98,7 +98,7 @@ export const InlineUpgradeToPro = (props: { compact?: boolean }) => {
- Analytics for all your pubs!
Emails and membership coming soon. + Analytics and Emails for all your pubs!
Membership coming soon.
); diff --git a/components/Icons/EmailTiny.tsx b/components/Icons/EmailTiny.tsx index b6f448f7..9fa33417 100644 --- a/components/Icons/EmailTiny.tsx +++ b/components/Icons/EmailTiny.tsx @@ -1,18 +1,17 @@ import { Props } from "./Props"; + export const EmailTiny = (props: Props) => { return ( diff --git a/components/Icons/PopoverArrow.tsx b/components/Icons/PopoverArrow.tsx index 82bfee19..06d0a8eb 100644 --- a/components/Icons/PopoverArrow.tsx +++ b/components/Icons/PopoverArrow.tsx @@ -11,7 +11,7 @@ export const PopoverArrow = ( height="8" viewBox="0 0 16 8" fill="none" - className="" + className="-mt-[1px]" xmlns="http://www.w3.org/2000/svg" > >; -let IdentityContext = createContext({ +export let IdentityContext = createContext({ identity: null as Identity, mutate: (() => {}) as KeyedMutator, }); diff --git a/components/Menu.tsx b/components/Menu.tsx index 721283dc..328ea837 100644 --- a/components/Menu.tsx +++ b/components/Menu.tsx @@ -81,6 +81,7 @@ export const RadioMenuGroup = (props: { }) => { return ( diff --git a/components/Subscribe/HandleSubscribe.tsx b/components/Subscribe/HandleSubscribe.tsx index 1cb35254..ae1075e3 100644 --- a/components/Subscribe/HandleSubscribe.tsx +++ b/components/Subscribe/HandleSubscribe.tsx @@ -37,8 +37,6 @@ const apps = [ { name: "Graze", logo: "/logos/graze.svg" }, ]; -import { Separator } from "components/Layout"; - export const SubscribeWithHandle = (props: { autoFocus?: boolean; publicationUri: string; @@ -79,9 +77,8 @@ export const SubscribeWithHandle = (props: { if (props.user.loggedIn && props.user.handle) { return ( -
+
- {props.leading} ) : ( <> + {props.leading} Subscribe as { }} > {confirmState === "success" ? ( - - ) : ( - setConfirmOpen(false)} - emailValue={email} - onSubmit={async (code) => { - if (confirming) return; - setConfirming(true); - let res = await confirmPublicationEmailSubscription( - props.publicationUri, - email, - code, - linkToCurrent, - ); - setConfirming(false); - if (!res.ok) { - toaster({ - type: "error", - content: ERROR_MESSAGES[res.error], - }); - return; - } - setConfirmState("success"); - router.refresh(); - }} - /> - )} + + ) : ( + setConfirmOpen(false)} + emailValue={email} + onSubmit={async (code) => { + if (confirming) return; + setConfirming(true); + let res = await confirmPublicationEmailSubscription( + props.publicationUri, + email, + code, + linkToCurrent, + ); + setConfirming(false); + if (!res.ok) { + toaster({ + type: "error", + content: ERROR_MESSAGES[res.error], + }); + return; + } + setConfirmState("success"); + router.refresh(); + }} + /> + )} )} @@ -317,35 +319,42 @@ const SubscribeModeMenu = (props: { onChange: (mode: SubscribeMode) => void; }) => { return ( - - {props.mode === "email" ? : } - - } - > - props.onChange(v as SubscribeMode)} +
+ + {props.mode === "email" ? : } + + + } > - - - Email - - - - - Atmosphere handle - - - - +
+ Subscribe via… +
+ props.onChange(v as SubscribeMode)} + > + + + Email + + + + + Atmosphere + + + +
+ +
); };