From 9197accc7dc0082b5d59a7da2e00c04cf3a909d0 Mon Sep 17 00:00:00 2001 From: moonyah Date: Thu, 13 Jun 2024 13:41:33 +0900 Subject: [PATCH] [Chore] Fix --- .../community/components/club/clubMenu/AllMenu.tsx | 14 +------------- .../components/club/clubMenu/AllMyClubs.tsx | 14 +------------- .../components/club/clubMenu/BookmarkMenu.tsx | 14 +------------- .../components/club/clubMenu/UnapprovedClubs.tsx | 14 +------------- 4 files changed, 4 insertions(+), 52 deletions(-) diff --git a/src/app/community/components/club/clubMenu/AllMenu.tsx b/src/app/community/components/club/clubMenu/AllMenu.tsx index 7b57531..141ee52 100644 --- a/src/app/community/components/club/clubMenu/AllMenu.tsx +++ b/src/app/community/components/club/clubMenu/AllMenu.tsx @@ -168,19 +168,7 @@ export default function AllMenu() { {clubs.map((club) => (
-
{ - e.preventDefault(); // 기본 동작 막기 - e.stopPropagation(); // 상위 요소로 이벤트 전파 막기 - console.log('Clicked club ID:', club.id); - const hasMatchingMembers = await fetchClubMembers(club.id); - if (hasMatchingMembers) { - window.location.href = `/community/club/${club.id}`; - } else { - window.location.href = `/community/club/request/${club.id}`; - } - }} - > +
{/* 모바일 화면 */}
{clubs.map((club) => (
- { - e.preventDefault(); - console.log('Clicked club ID:', club.id); - const hasMatchingMembers = await fetchClubMembers(club.id); - if (hasMatchingMembers) { - window.location.href = `/community/club/${club.id}`; - } else { - window.location.href = '/community/club/request'; - } - }} - > + {/* 모바일 화면 */}
{clubs.map((club) => ( - { - e.preventDefault(); - console.log('Clicked club ID:', club.id); - const hasMatchingMembers = await fetchClubMembers(club.id); - if (hasMatchingMembers) { - window.location.href = `/community/club/${club.id}`; - } else { - window.location.href = '/community/club/request'; - } - }} - > + {' '}
{/* 모바일 화면 */} diff --git a/src/app/community/components/club/clubMenu/UnapprovedClubs.tsx b/src/app/community/components/club/clubMenu/UnapprovedClubs.tsx index c15fcff..a80defb 100644 --- a/src/app/community/components/club/clubMenu/UnapprovedClubs.tsx +++ b/src/app/community/components/club/clubMenu/UnapprovedClubs.tsx @@ -150,19 +150,7 @@ export default function UnapprovedClubs() { ) : (
{clubs.map((club) => ( - { - e.preventDefault(); - console.log('Clicked club ID:', club.id); - const hasMatchingMembers = await fetchClubMembers(club.id); - if (hasMatchingMembers) { - window.location.href = `/community/club/${club.id}`; - } else { - window.location.href = '/community/club/request'; - } - }} - > +
{/* 모바일 화면 */}