From 78fefd4ea39fcc48ec93ace1bfec0aa17828afeb Mon Sep 17 00:00:00 2001 From: teegoood Date: Sun, 4 Aug 2024 01:04:50 +0700 Subject: [PATCH 1/2] disable firstdate --- src/components/(main)/home/CustomButton.tsx | 2 +- src/components/rpkm/staff/home/qrscanner/QRScanner.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/(main)/home/CustomButton.tsx b/src/components/(main)/home/CustomButton.tsx index fed9e512..7ffba403 100644 --- a/src/components/(main)/home/CustomButton.tsx +++ b/src/components/(main)/home/CustomButton.tsx @@ -131,7 +131,7 @@ const CustomButton: React.FC = ({ }; const buttonProps = { 'first-date': { - color: 'bg-project-pink', + color: 'bg-project-pink opacity-30 event-pointer-none', onClick: firstdate, }, 'rub-peun': { diff --git a/src/components/rpkm/staff/home/qrscanner/QRScanner.tsx b/src/components/rpkm/staff/home/qrscanner/QRScanner.tsx index 32668e7b..6a9ce74c 100644 --- a/src/components/rpkm/staff/home/qrscanner/QRScanner.tsx +++ b/src/components/rpkm/staff/home/qrscanner/QRScanner.tsx @@ -27,7 +27,11 @@ const Scan = ({ sendCheckInRequest }: ScanProps) => { scanDelay={0} className="bg-black w-[100vw] aspect-square -mt-[13vw] -ml-[14vw]" onResult={handleScanResult} - constraints={{ facingMode: 'environment' }} + constraints={{ + facingMode: 'environment', + //eslint-disable-next-line @typescript-eslint/no-explicit-any + advanced: [{ zoom: 2.5, facingMode: 'continuous' } as any], + }} /> From 52bbde56a59683b3c6eda9b936b534c58d7d1420 Mon Sep 17 00:00:00 2001 From: teegoood Date: Sun, 4 Aug 2024 01:08:02 +0700 Subject: [PATCH 2/2] add: disable firstdate button --- src/components/(main)/home/CustomButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/(main)/home/CustomButton.tsx b/src/components/(main)/home/CustomButton.tsx index 7ffba403..186a978f 100644 --- a/src/components/(main)/home/CustomButton.tsx +++ b/src/components/(main)/home/CustomButton.tsx @@ -35,7 +35,7 @@ const CustomButton: React.FC = ({ const router = useRouter(); const firstdate = async () => { - let firstDateDate = currentDate; + /* let firstDateDate = currentDate; const firstDate = process.env.NEXT_PUBLIC_FIRST_DATE_DATE; if (firstDate) { @@ -52,7 +52,7 @@ const CustomButton: React.FC = ({ router.push('/firstdate/home'); } else { router.push('/register'); - } + } */ }; const rubpeun = async () => {