From 7aafceb87daf34ca8b4a7ff546e05cccc60b0095 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 26 Sep 2023 16:27:55 -0700 Subject: [PATCH] Several fixes --- apps/web/pages/booking/[uid].tsx | 2 +- packages/app-store/_components/AppCard.tsx | 2 +- packages/app-store/alby/api/add.ts | 17 ------ .../alby/components/AlbyPaymentComponent.tsx | 22 +++----- packages/app-store/alby/lib/PaymentService.ts | 15 ++++- packages/app-store/alby/lib/parseInvoice.ts | 12 +++- .../app-store/paypal/lib/PaymentService.ts | 17 ++++-- .../stripepayment/lib/PaymentService.ts | 46 +++++++-------- .../features/ee/payments/api/alby-webhook.ts | 2 +- .../lib/apps/getEnabledAppsFromCredentials.ts | 1 + .../loggedInViewer/integrations.handler.ts | 56 ++++++++++++------- .../routers/viewer/bookings/_router.tsx | 18 ++++++ .../routers/viewer/bookings/find.handler.ts | 36 ++++++++++++ .../routers/viewer/bookings/find.schema.ts | 9 +++ packages/types/PaymentService.d.ts | 5 +- 15 files changed, 171 insertions(+), 89 deletions(-) create mode 100644 packages/trpc/server/routers/viewer/bookings/find.handler.ts create mode 100644 packages/trpc/server/routers/viewer/bookings/find.schema.ts diff --git a/apps/web/pages/booking/[uid].tsx b/apps/web/pages/booking/[uid].tsx index c1318a314d..013c443cee 100644 --- a/apps/web/pages/booking/[uid].tsx +++ b/apps/web/pages/booking/[uid].tsx @@ -94,7 +94,7 @@ const querySchema = z.object({ }); export default function Success(props: SuccessProps) { - const { t, i18n } = useLocale(); + const { t } = useLocale(); const router = useRouter(); const routerQuery = useRouterQuery(); const pathname = usePathname(); diff --git a/packages/app-store/_components/AppCard.tsx b/packages/app-store/_components/AppCard.tsx index f2449cdd5e..803e6ef78a 100644 --- a/packages/app-store/_components/AppCard.tsx +++ b/packages/app-store/_components/AppCard.tsx @@ -114,7 +114,7 @@ export default function AppCard({ {app?.isInstalled && switchChecked &&
} {app?.isInstalled && switchChecked ? ( - app.isSetup ? ( + app.isSetupAlready ? (