From fc0da761b504bb33c2781d2388a070cd74992659 Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Mon, 10 Mar 2025 18:32:07 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ui):=20Improve=20dashboard?= =?UTF-8?q?=20layout=20and=20enhance=20button=20functionality;=20open=20ch?= =?UTF-8?q?eckout=20URLs=20in=20a=20new=20tab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/(main)/(user)/dashboard/content.tsx | 31 ++++++++++++++++--- apps/user/app/(main)/(user)/payment/page.tsx | 2 +- .../user/app/(main)/purchasing/order/page.tsx | 2 +- apps/user/components/footer.tsx | 14 +++++---- apps/user/components/header.tsx | 2 +- 5 files changed, 37 insertions(+), 14 deletions(-) diff --git a/apps/user/app/(main)/(user)/dashboard/content.tsx b/apps/user/app/(main)/(user)/dashboard/content.tsx index 315a262..b2ccdce 100644 --- a/apps/user/app/(main)/(user)/dashboard/content.tsx +++ b/apps/user/app/(main)/(user)/dashboard/content.tsx @@ -57,7 +57,11 @@ export default function Content() { const [protocol, setProtocol] = useState(''); - const { data: userSubscribe = [], refetch } = useQuery({ + const { + data: userSubscribe = [], + refetch, + isLoading, + } = useQuery({ queryKey: ['queryUserSubscribe'], queryFn: async () => { const { data } = await queryUserSubscribe(); @@ -88,10 +92,27 @@ export default function Content() { <> {userSubscribe.length ? ( <> -

- - {t('mySubscriptions')} -

+
+

+ + {t('mySubscriptions')} +

+
+ + +
+
{site.site_name} © All rights reserved. - - {t('tos')} - - - {t('privacyPolicy')} - +
+ + {t('tos')} + + + {t('privacyPolicy')} + +
diff --git a/apps/user/components/header.tsx b/apps/user/components/header.tsx index b3bc992..aa1c1b8 100644 --- a/apps/user/components/header.tsx +++ b/apps/user/components/header.tsx @@ -19,7 +19,7 @@ export default function Header() { {site.site_logo && ( logo )} - {site.site_name} + {site.site_name} ); return (