Skip to content

Commit

Permalink
Merge pull request #122 from Linkup-3mw/feature/club
Browse files Browse the repository at this point in the history
[Chore] Fix
  • Loading branch information
moonyah authored Jun 13, 2024
2 parents e2db6db + 9197acc commit 8fe883d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 52 deletions.
14 changes: 1 addition & 13 deletions src/app/community/components/club/clubMenu/AllMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,7 @@ export default function AllMenu() {
{clubs.map((club) => (
<div key={club.id}>
<Link href={`/community/club/${club.id}`}>
<div
onClick={async (e) => {
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}`;
}
}}
>
<div>
{/* 모바일 화면 */}
<div
className={`bg-white rounded-2xl relative p-4 block md:hidden`}
Expand Down
14 changes: 1 addition & 13 deletions src/app/community/components/club/clubMenu/AllMyClubs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,19 +157,7 @@ export default function AllMyClubs() {
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 md:gap-[2rem] gap-4 md:mt-8 mt-4">
{clubs.map((club) => (
<div key={club.id}>
<Link
href={`/community/club/${club.id}`}
onClick={async (e) => {
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';
}
}}
>
<Link href={`/community/club/${club.id}`}>
{/* 모바일 화면 */}
<div
className={`bg-white rounded-2xl relative p-4 block md:hidden`}
Expand Down
14 changes: 1 addition & 13 deletions src/app/community/components/club/clubMenu/BookmarkMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,7 @@ export default function BookmarkMenu() {
) : (
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 md:gap-[2rem] gap-4 md:mt-8 mt-4">
{clubs.map((club) => (
<Link
href={`/community/club/${club.id}`}
onClick={async (e) => {
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';
}
}}
>
<Link href={`/community/club/${club.id}`}>
{' '}
<div key={club.id}>
{/* 모바일 화면 */}
Expand Down
14 changes: 1 addition & 13 deletions src/app/community/components/club/clubMenu/UnapprovedClubs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,7 @@ export default function UnapprovedClubs() {
) : (
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 md:gap-[2rem] gap-4 md:mt-8 mt-4">
{clubs.map((club) => (
<Link
href={`/community/club/${club.id}`}
onClick={async (e) => {
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';
}
}}
>
<Link href={`/community/club/${club.id}`}>
<div key={club.id}>
{/* 모바일 화면 */}
<div
Expand Down

0 comments on commit 8fe883d

Please sign in to comment.