diff --git a/src/pages/guest/page/GuestMyClass/GuestMyClass.tsx b/src/pages/guest/page/GuestMyClass/GuestMyClass.tsx index 91d634bb..009ceadb 100644 --- a/src/pages/guest/page/GuestMyClass/GuestMyClass.tsx +++ b/src/pages/guest/page/GuestMyClass/GuestMyClass.tsx @@ -64,6 +64,21 @@ const GuestMyClass = () => { '환불 완료': currentData?.filter((data) => data.moimSubmissionState === 'refunded'), }; + const GuestMyClassEmptyViewText = (state: string) => { + switch (state) { + case '전체': { + return '아직 신청한 클래스가 없어요'; + } + case '입금 대기': + case '승인 대기': { + return `${state} 중인 클래스가 없어요`; + } + default: { + return `${state}된 클래스가 없어요`; + } + } + }; + if (isApplyLoading || isParticipateLoading) { return ; } @@ -112,9 +127,7 @@ const GuestMyClass = () => { diff --git a/src/pages/home/page/Home/Home.tsx b/src/pages/home/page/Home/Home.tsx index 86c2b1a3..ff0c0d7e 100644 --- a/src/pages/home/page/Home/Home.tsx +++ b/src/pages/home/page/Home/Home.tsx @@ -84,13 +84,19 @@ const Home = () => { modules={[Pagination]} loop={true} className="mySwiper"> - {bannerList.map((banner, index) => { - return ( - handleBannerClick(index)}> - - - ); - })} + {bannerId ? ( + bannerList.map((banner, index) => { + return ( + handleBannerClick(index)}> + + + ); + }) + ) : ( + handleBannerClick(1)}> + + + )}