From ffee70a7669618fcd287fa86036a964e24165874 Mon Sep 17 00:00:00 2001 From: betich Date: Fri, 4 Aug 2023 09:10:43 +0700 Subject: [PATCH 1/2] fix: fix text styles --- src/components/Background.tsx | 4 ++-- src/pages/pdpa.tsx | 8 +++----- src/pages/privacy-policy.tsx | 8 +++----- src/pages/terms-conditions.tsx | 8 +++----- 4 files changed, 11 insertions(+), 17 deletions(-) diff --git a/src/components/Background.tsx b/src/components/Background.tsx index 4ab2a07..a6f077d 100644 --- a/src/components/Background.tsx +++ b/src/components/Background.tsx @@ -16,7 +16,7 @@ const Background = () => { blurDataURL={`data:image/svg+xml;base64, ${toBase64( shimmer(1024, 1024) )}`} - className="pointer-events-none fixed left-0 top-0 -z-50 hidden h-full w-full select-none object-cover object-top lg:block" + className="pointer-events-none fixed left-0 top-0 -z-50 hidden h-full w-full w-screen select-none overflow-hidden object-cover object-top lg:block" /> { blurDataURL={`data:image/svg+xml;base64, ${toBase64( shimmer(1024, 1024) )}`} - className="pointer-events-none fixed left-0 top-0 -z-50 block h-full w-full select-none object-cover lg:hidden" + className="pointer-events-none fixed left-0 top-0 -z-50 block h-full w-full w-screen select-none overflow-hidden object-cover lg:hidden" /> ); diff --git a/src/pages/pdpa.tsx b/src/pages/pdpa.tsx index 018b868..0a102f5 100644 --- a/src/pages/pdpa.tsx +++ b/src/pages/pdpa.tsx @@ -11,11 +11,9 @@ export async function getStaticProps() { const PrivacyPolicy = ({ source }: { source: any }) => { return ( -
-
-
{source}
-
-
+
+
{source}
+
); }; diff --git a/src/pages/privacy-policy.tsx b/src/pages/privacy-policy.tsx index ef5d455..2a59300 100644 --- a/src/pages/privacy-policy.tsx +++ b/src/pages/privacy-policy.tsx @@ -11,11 +11,9 @@ export async function getStaticProps() { const PrivacyPolicy = ({ source }: { source: any }) => { return ( -
-
-
{source}
-
-
+
+
{source}
+
); }; diff --git a/src/pages/terms-conditions.tsx b/src/pages/terms-conditions.tsx index 0251803..fe4b362 100644 --- a/src/pages/terms-conditions.tsx +++ b/src/pages/terms-conditions.tsx @@ -10,11 +10,9 @@ export async function getStaticProps() { const PrivacyPolicy = ({ source }: { source: any }) => { return ( -
-
-
{source}
-
-
+
+
{source}
+
); }; From 7e0ced4bd6a2b49a87a072c2175cd7bc5db21a2e Mon Sep 17 00:00:00 2001 From: betich Date: Fri, 4 Aug 2023 09:21:55 +0700 Subject: [PATCH 2/2] chore: fuck --- src/pages/scan.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/scan.tsx b/src/pages/scan.tsx index f0863f0..edb46be 100644 --- a/src/pages/scan.tsx +++ b/src/pages/scan.tsx @@ -29,7 +29,7 @@ function Scan() { try { // check-in qr code if (token === 'rpkm66-check-in') { - const { status } = await httpPost('/checkin/', {}); + const { status } = await httpPost('/checkin', {}); if (status === 200) { toast?.setToast('success', 'Check-in successfully'); } else {