damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README | LICENSE

commit 28eaba297319056b05d3ff62183d32f71cfc993b
parent 5797d72fcfa4c48a68d40aba81f07ad56388a2b4
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Wed, 31 Jan 2024 02:10:58 +0000

Add troubleshooting messages for some of the steps

Closes: https://github.com/damus-io/damus/issues/1937
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Link: 20240131021044.86169-2-daniel@daquino.me
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/components/sections/PurpleCheckout.tsx | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/components/sections/PurpleCheckout.tsx b/src/components/sections/PurpleCheckout.tsx @@ -12,6 +12,7 @@ import { NostrEvent, Relay, nip19 } from "nostr-tools" import { QRCodeSVG } from 'qrcode.react'; import { useInterval } from 'usehooks-ts' import Lnmessage from 'lnmessage' +import { DAMUS_TESTFLIGHT_URL } from "@/lib/constants"; export function PurpleCheckout() { @@ -231,12 +232,17 @@ export function PurpleCheckout() { active={lnCheckout?.product_template_name != null} /> {lnCheckout && !lnCheckout.verified_pubkey && <> + <QRCodeSVG value={"damus:purple:verify?id=" + lnCheckout.id} className="mt-6 w-[300px] h-[300px] max-w-full max-h-full mx-auto mb-6" /> <Link href={"damus:purple:verify?id=" + lnCheckout.id} className="w-full md:w-auto opacity-70 hover:opacity-100 transition"> <Button variant="link" className="w-full text-sm"> {intl.formatMessage({ id: "purple.checkout.open-in-app", defaultMessage: "Open in Damus" })} </Button> </Link> + <div className="text-white/40 text-xs text-center mt-4 mb-6"> + {/* TODO: Localize later */} + Issues with this step? Please ensure you are running the latest Damus iOS version from <Link href={DAMUS_TESTFLIGHT_URL} className="text-damuspink-500 underline" target="_blank">TestFlight</Link> — or <Link href="mailto:support@damus.io" className="text-damuspink-500 underline">contact us</Link> + </div> </> } {profile && @@ -313,10 +319,14 @@ export function PurpleCheckout() { <QRCodeSVG value={"damus:purple:welcome?id=" + lnCheckout.id} className="mt-6 w-[300px] h-[300px] max-w-full max-h-full mx-auto mb-6" /> </> )} + <div className="text-white/40 text-xs text-center mt-4 mb-6"> + {/* TODO: Localize later */} + Issues with this step? Please ensure you are running the latest Damus iOS version from <Link href={DAMUS_TESTFLIGHT_URL} className="text-damuspink-500 underline" target="_blank">TestFlight</Link> — or <Link href="mailto:support@damus.io" className="text-damuspink-500 underline">contact us</Link> + </div> </div> )} </RoundedContainerWithGradientBorder> - <Link href="/purple" className="w-full md:w-auto opacity-70 hover:opacity-100 transition"> + <Link href="/purple" className="w-full md:w-auto opacity-70 hover:opacity-100 transition mb-4"> <Button variant="link" className="w-full text-sm"> <ArrowLeft className="text-damuspink-600 mr-2" /> {intl.formatMessage({ id: "purple.checkout.back", defaultMessage: "Go back" })}