From e228e0f568f1f1d8449aeb36e8ebcd8c4eb3e1e0 Mon Sep 17 00:00:00 2001 From: celine Date: Wed, 11 Jun 2025 00:35:39 -0400 Subject: [PATCH] small copy tweak to the log in form if your subbing to a publicatin --- app/lish/Subscribe.tsx | 8 ++++++-- app/login/LoginForm.tsx | 5 ++++- components/utils/DotLoader.tsx | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/lish/Subscribe.tsx b/app/lish/Subscribe.tsx index eb866e40..74e14679 100644 --- a/app/lish/Subscribe.tsx +++ b/app/lish/Subscribe.tsx @@ -275,6 +275,7 @@ let BlueskySubscribeButton = (props: { setSuccessModalOpen: (open: boolean) => void; }) => { let { identity } = useIdentityData(); + let toaster = useToaster(); let [, subscribe, subscribePending] = useActionState(async () => { let result = await subscribeToPublication( props.pub_uri, @@ -283,7 +284,9 @@ let BlueskySubscribeButton = (props: { if (result.hasFeed === false) { props.setSuccessModalOpen(true); } + toaster({ content:
You're Subscribed!
, type: "success" }); }, null); + let [isClient, setIsClient] = useState(false); useEffect(() => { setIsClient(true); @@ -295,12 +298,13 @@ let BlueskySubscribeButton = (props: { asChild trigger={ - Subscribe with Bluesky{" "} + Subscribe with Bluesky } > {isClient && ( ) : ( <> - Subscribe with Bluesky{" "} + Subscribe with Bluesky )} diff --git a/app/login/LoginForm.tsx b/app/login/LoginForm.tsx index 7966da59..4b9a5b97 100644 --- a/app/login/LoginForm.tsx +++ b/app/login/LoginForm.tsx @@ -16,6 +16,7 @@ import { mutate } from "swr"; export default function LoginForm(props: { noEmail?: boolean; + publication?: boolean; redirectRoute?: string; action?: ActionAfterSignIn; }) { @@ -121,7 +122,9 @@ export default function LoginForm(props: {

Log In or Sign Up

- Save your Leaflets and access them on multiple devices! + {props.publication + ? "Log in to Bluesky to subscribe this publication!" + : "Save your Leaflets and access them on multiple devices!"}
diff --git a/components/utils/DotLoader.tsx b/components/utils/DotLoader.tsx index 9d253378..233ff399 100644 --- a/components/utils/DotLoader.tsx +++ b/components/utils/DotLoader.tsx @@ -11,7 +11,7 @@ export function DotLoader() { }; }, []); return ( -
+
{".".repeat(dots) + "\u00a0".repeat(3 - dots)}
); -- 2.51.2