From 0dcb3cfdb4eedddbb766f00d2c9584a47d96947b Mon Sep 17 00:00:00 2001 From: NizzyABI Date: Wed, 8 Jan 2025 12:51:52 -0500 Subject: [PATCH] billing plain chat working --- apps/web/modules/settings/billing/billing-view.tsx | 10 ++++++++++ .../modules/settings/platform/billing/billing-view.tsx | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/apps/web/modules/settings/billing/billing-view.tsx b/apps/web/modules/settings/billing/billing-view.tsx index ea0bad02152c5e..900c699104278a 100644 --- a/apps/web/modules/settings/billing/billing-view.tsx +++ b/apps/web/modules/settings/billing/billing-view.tsx @@ -14,6 +14,16 @@ interface CtaRowProps { className?: string; } +declare global { + interface Window { + Plain?: { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + init: (config: any) => void; + open: () => void; + }; + } +} + export const CtaRow = ({ title, description, className, children }: CtaRowProps) => { return ( <> diff --git a/apps/web/modules/settings/platform/billing/billing-view.tsx b/apps/web/modules/settings/platform/billing/billing-view.tsx index 44096886c1b2d2..24579952e468d7 100644 --- a/apps/web/modules/settings/platform/billing/billing-view.tsx +++ b/apps/web/modules/settings/platform/billing/billing-view.tsx @@ -13,6 +13,16 @@ import { useGetUserAttributes } from "@components/settings/platform/hooks/useGet import { CtaRow } from "~/settings/billing/billing-view"; +declare global { + interface Window { + Plain?: { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + init: (config: any) => void; + open: () => void; + }; + } +} + export default function PlatformBillingUpgrade() { const pathname = usePathname(); const { t } = useLocale();