Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: billing plain chat working #18530

Merged
merged 4 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions apps/web/modules/settings/billing/billing-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down
10 changes: 10 additions & 0 deletions apps/web/modules/settings/platform/billing/billing-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Loading