From 53cd01dd8f24237df375d6c00c7ed2387a968fa9 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Sat, 23 Sep 2023 15:12:33 +0700 Subject: [PATCH] feat: add links to and from alby setup --- apps/web/components/apps/AppPage.tsx | 25 +++++++++++++------ packages/app-store/alby/pages/setup/index.tsx | 10 +++++--- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/apps/web/components/apps/AppPage.tsx b/apps/web/components/apps/AppPage.tsx index 992c29fef6..998b4bcaf5 100644 --- a/apps/web/components/apps/AppPage.tsx +++ b/apps/web/components/apps/AppPage.tsx @@ -89,6 +89,8 @@ export const AppPage = ({ const [existingCredentials, setExistingCredentials] = useState([]); const [showDisconnectIntegration, setShowDisconnectIntegration] = useState(false); + // FIXME: remove hardcoding + const showSetupIntegration = slug === "alby"; const appDbQuery = trpc.viewer.appCredentialsByType.useQuery( { appType: type }, { @@ -213,14 +215,21 @@ export const AppPage = ({ )} ) : showDisconnectIntegration ? ( - { - appDbQuery.refetch(); - }} - /> +
+ {showSetupIntegration && ( + + + + )} + { + appDbQuery.refetch(); + }} + /> +
) : ( ) : ( <> + Alby Logo

Alby Connected!

-

Email: {props.email}

-

Lightning Address: {props.lightningAddress}

+ Email: {props.email} + Lightning Address: {props.lightningAddress} )} @@ -156,6 +157,9 @@ function AlbySetupPage(props: IAlbySetupProps) { generate invoices. If you update your lightning address, please disconnect and setup the Alby app again. + + + ) : (