Skip to content

Commit da3cbb3

Browse files
committed
FEAT: MOU 단체 없을 경우 애니메이션 작동 안하도록
1 parent 445106a commit da3cbb3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/landing/CardsContent.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ const CardsContent: React.FC<CardsContentProps> = ({ pageNum, isOpened, setIsOpe
5858
}, [isOpened]);
5959

6060
const onMouseEnter = () => {
61+
if (!organizationsExport[pageNum]) {
62+
return;
63+
}
64+
6165
// setIsOpened((prev) => ({ ...prev, [pageNum]: true }));
6266
// 선택된 카드만 열기, 나머진 닫기
6367
if (!isTablet) {
@@ -66,6 +70,10 @@ const CardsContent: React.FC<CardsContentProps> = ({ pageNum, isOpened, setIsOpe
6670
}
6771
};
6872
const onClick = () => {
73+
if (!organizationsExport[pageNum]) {
74+
return;
75+
}
76+
6977
// 선택된 카드만 열기, 나머진 닫기
7078
if (isTablet) {
7179
// responsive: 클릭 시 카드 열기

0 commit comments

Comments
 (0)