update pay function
This commit is contained in:
23
boilerplate-chakra-pro-main/app/pricing/page.tsx
Normal file
23
boilerplate-chakra-pro-main/app/pricing/page.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import Pricing from '@/components/pricing';
|
||||
import { Providers } from '@/components/providers';
|
||||
import {
|
||||
getProducts,
|
||||
getUser,
|
||||
getSubscription
|
||||
} from '@/utils/supabase/queries';
|
||||
import { createClient } from '@/utils/supabase/server';
|
||||
|
||||
export default async function PricingPage() {
|
||||
const supabase = createClient();
|
||||
const [user, products, subscription] = await Promise.all([
|
||||
getUser(supabase),
|
||||
getProducts(supabase),
|
||||
getSubscription(supabase)
|
||||
]);
|
||||
|
||||
return (
|
||||
<Providers>
|
||||
<Pricing user={user} products={products} subscription={subscription} />
|
||||
</Providers>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user