From 75fc8903b06fae62fad76615e3e44d8f6a477add Mon Sep 17 00:00:00 2001 From: PhorDotC Date: Thu, 25 Jul 2024 02:15:25 +0700 Subject: [PATCH] fix: lint --- src/app/(main)/home/page.tsx | 4 +--- src/components/(main)/home/CustomButton.tsx | 4 +--- src/components/(main)/home/JoinModal.tsx | 2 -- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/app/(main)/home/page.tsx b/src/app/(main)/home/page.tsx index 95a42f6e..70667b0a 100644 --- a/src/app/(main)/home/page.tsx +++ b/src/app/(main)/home/page.tsx @@ -35,7 +35,7 @@ export default function Home() { 'first-date' | 'rup-peun' >('first-date'); const [joinModal, setJoinModal] = useState(false); - const [announce, setAnnounce] = useState(false); + //const [announce, setAnnounce] = useState(false); const [isCheckedIn, setIsCheckedIn] = useState(false); const [isJoined, setIsJoined] = useState(false); @@ -157,7 +157,6 @@ export default function Home() { setEvent={setInterestedEvent} isCheckedIn={isCheckedIn} setJoinModal={setJoinModal} - setAnnounce={setAnnounce} >
Rub Peun Kao Mai 2024
@@ -218,7 +217,6 @@ export default function Home() { diff --git a/src/components/(main)/home/CustomButton.tsx b/src/components/(main)/home/CustomButton.tsx index c5aa82e3..77dbe7e2 100644 --- a/src/components/(main)/home/CustomButton.tsx +++ b/src/components/(main)/home/CustomButton.tsx @@ -14,7 +14,6 @@ interface CustomButtonProps { setWaitModal?: (value: boolean) => void; setEvent?: (value: 'first-date' | 'rup-peun') => void; setJoinModal?: (value: boolean) => void; - setAnnounce?: (value: boolean) => void; } const CustomButton: React.FC = ({ @@ -27,7 +26,6 @@ const CustomButton: React.FC = ({ setWaitModal, setEvent, setJoinModal, - setAnnounce, }) => { const router = useRouter(); const { isConfirmed } = useBaan(); @@ -72,7 +70,7 @@ const CustomButton: React.FC = ({ if (currentDate >= closedSelectionDate) { if (!isConfirmed) { router.push('/rpkm/activities/home'); - } else if (setJoinModal && setAnnounce) { + } else if (setJoinModal) { if (isCheckedIn) { router.push('/rpkm/activities/home'); } else { diff --git a/src/components/(main)/home/JoinModal.tsx b/src/components/(main)/home/JoinModal.tsx index f2dccaeb..291dc8bd 100644 --- a/src/components/(main)/home/JoinModal.tsx +++ b/src/components/(main)/home/JoinModal.tsx @@ -8,7 +8,6 @@ import modalStyles from '@/components/rpkm/Modal/ModalStyle'; interface JoinModalProps { modal: boolean; setModal: (value: boolean) => void; - announce: boolean; isJoined: boolean; checkInConfirm: () => void; } @@ -16,7 +15,6 @@ interface JoinModalProps { const JoinModal: React.FC = ({ modal, setModal, - announce, isJoined, checkInConfirm, }) => {