From 9a6534ce17b6230083567dbe4c84e6a7191d2021 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 28 Jan 2026 00:15:49 +0000 Subject: [PATCH] Changes --- src/pages/Account.tsx | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/src/pages/Account.tsx b/src/pages/Account.tsx index 3a7ea9b..86fb260 100644 --- a/src/pages/Account.tsx +++ b/src/pages/Account.tsx @@ -8,7 +8,8 @@ import { useAuth } from "@/hooks/useAuth"; import { useToast } from "@/hooks/use-toast"; import { supabase } from "@/integrations/supabase/client"; import Header from "@/components/Header"; -import { Save } from "lucide-react"; +import { Save, Package } from "lucide-react"; +import { useShopifyProducts } from "@/hooks/useShopifyProducts"; const profileSchema = z.object({ street_address: z.string().trim().max(200, { message: "Gatuadress får max vara 200 tecken" }).optional(), @@ -38,6 +39,7 @@ const Account = () => { const { user, loading: authLoading, signOut } = useAuth(); const { toast } = useToast(); const navigate = useNavigate(); + const { products, isLoading: productsLoading } = useShopifyProducts("product_type:Abonnemang"); const hasChanges = profile.street_address !== originalProfile.street_address || @@ -239,7 +241,38 @@ const Account = () => { - {/* Sign out link */} + {/* Subscription Section */} +
Laddar abonnemang...
+ ) : ( ++ Du har för närvarande inget aktivt abonnemang. +
+ +