11import { createClient } from "@/utils/supabase/server" ;
2- import { signout } from ". /login/actions" ;
2+ import { signout } from "@/app /login/actions" ;
33import { getSubscriptionDetails } from "@/lib/stripe" ;
4- import { hasUserPurchased } from "@/lib/purchases" ;
54import {
65 Card ,
76 CardContent ,
@@ -23,17 +22,15 @@ export default async function Page() {
2322
2423 if ( ! user ) return null ;
2524
26- const [ subscription , ownsProduct ] = await Promise . all ( [
27- getSubscriptionDetails ( user . id ) ,
28- hasUserPurchased ( user . id , PRODUCT_PRICE_ID ) ,
29- ] ) ;
25+ const [ subscription ] = await Promise . all ( [ getSubscriptionDetails ( user . id ) ] ) ;
26+ const ownsProduct = false ;
3027
3128 return (
32- < main className = "flex min-h-screen items-center justify-center p-4" >
33- < div className = "w-full max-w-md space-y-4 " >
34- < Card >
29+ < main className = "min-h-screen p-4 w-full " >
30+ < div className = "flex flex-row gap-4 w-full " >
31+ < Card className = "flex-1" >
3532 < CardHeader >
36- < CardTitle className = "text-2xl" > Welcome</ CardTitle >
33+ < CardTitle className = "text-2xl" > Welcome t </ CardTitle >
3734 < CardDescription > You are signed in as</ CardDescription >
3835 </ CardHeader >
3936 < CardContent className = "space-y-4" >
@@ -46,7 +43,7 @@ export default async function Page() {
4643 </ CardContent >
4744 </ Card >
4845
49- < Card >
46+ < Card className = "flex-1" >
5047 < CardHeader >
5148 < CardTitle > Subscription</ CardTitle >
5249 < CardDescription >
@@ -107,7 +104,7 @@ export default async function Page() {
107104 </ CardContent >
108105 </ Card >
109106
110- < Card >
107+ < Card className = "flex-1" >
111108 < CardHeader >
112109 < CardTitle > Product</ CardTitle >
113110 < CardDescription >
0 commit comments