diff --git a/src/app/(main)/staff/register/page.tsx b/src/app/(main)/staff/register/page.tsx index 8364f9ff..2f393050 100644 --- a/src/app/(main)/staff/register/page.tsx +++ b/src/app/(main)/staff/register/page.tsx @@ -124,7 +124,7 @@ export default function Register() { const isRpkm = new Date(process.env.NEXT_PUBLIC_RPKM_DAY_1 as string) < new Date(); - let newPath = isRpkm ? '/rpkm/staff/home' : '/firstdate/staff/home'; + const newPath = isRpkm ? '/rpkm/staff/home' : '/firstdate/staff/home'; await resetContext(); router.push(newPath); diff --git a/src/app/rpkm/freshy-night/confirm-register/page.tsx b/src/app/rpkm/freshy-night/confirm-register/page.tsx index 0a06239f..360bd5b4 100644 --- a/src/app/rpkm/freshy-night/confirm-register/page.tsx +++ b/src/app/rpkm/freshy-night/confirm-register/page.tsx @@ -1,6 +1,6 @@ 'use client'; -import { useState, ChangeEvent, useCallback } from 'react'; +import { useState, ChangeEvent } from 'react'; import { useRouter } from 'next/navigation'; import { useAuth } from '@/context/AuthContext'; import { getAccessToken } from '@/utils/auth'; diff --git a/src/app/rpkm/staff/home/page.tsx b/src/app/rpkm/staff/home/page.tsx index 826dce9e..4ebfad47 100644 --- a/src/app/rpkm/staff/home/page.tsx +++ b/src/app/rpkm/staff/home/page.tsx @@ -5,8 +5,9 @@ import { getCurrentTime } from '@/utils/time'; import React, { useEffect, useState } from 'react'; function Page() { - const [eventText, setEventText] = useState('Onsite 3 สิงหาคม 2567'); - const [event, setEvent] = useState('rpkm-day-1'); + const [eventText, setEventText] = useState(''); + const [event, setEvent] = useState(''); + useEffect(() => { const checkEvent = async () => { const currentTime = (await getCurrentTime()).currentTime; @@ -41,6 +42,7 @@ function Page() { checkEvent(); }, []); + return (
diff --git a/src/app/rpkm/staff/profile/page.tsx b/src/app/rpkm/staff/profile/page.tsx index ebe10ddb..89648b30 100644 --- a/src/app/rpkm/staff/profile/page.tsx +++ b/src/app/rpkm/staff/profile/page.tsx @@ -22,11 +22,12 @@ function Page() { > สตาฟ
-
+
profile picture
diff --git a/src/components/rpkm/staff/home/qrscanner/QRScanner.tsx b/src/components/rpkm/staff/home/qrscanner/QRScanner.tsx index ba2cd9bc..a5e6a368 100644 --- a/src/components/rpkm/staff/home/qrscanner/QRScanner.tsx +++ b/src/components/rpkm/staff/home/qrscanner/QRScanner.tsx @@ -65,11 +65,14 @@ const Scan: React.FC = ({ event }) => { return (
- + {event != '' && ( + + )} +