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

Billing modal issue. #917

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 1 addition & 3 deletions libs/ui/app/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ interface RootLayoutProps {
export default function RootLayout({ children, profile }: RootLayoutProps) {
return (
<section className="flex h-screen">
{/*
{process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY && (
{profile && process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY && (
<BillingModal profile={profile} />
)}
*/}
<Sidebar />
<div className="flex-1 overflow-auto">{children}</div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions libs/ui/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "@/styles/globals.css"

import { Metadata } from "next"
import { cookies } from "next/headers"
import { createRouteHandlerClient } from "@supabase/auth-helpers-nextjs"
import { createServerComponentClient } from "@supabase/auth-helpers-nextjs"

import { siteConfig } from "@/config/site"
import { fontSans } from "@/lib/fonts"
Expand Down Expand Up @@ -37,7 +37,7 @@ interface RootLayoutProps {
export const dynamic = "force-dynamic"

export default async function RootLayout({ children }: RootLayoutProps) {
const supabase = createRouteHandlerClient({ cookies })
const supabase = createServerComponentClient({ cookies })

if (process.env.NEXT_PUBLIC_POSTHOG_KEY) {
PostHogClient()
Expand Down