fix: 검색 모드 진입 시 기존 일정 숨김
- isSearchMode일 때 searchTerm 없으면 '검색어를 입력하세요' 표시 - 기존 날짜별 일정이 보이지 않도록 조건 수정
This commit is contained in:
parent
c8ec8de946
commit
54bbe75ecc
1 changed files with 8 additions and 3 deletions
|
|
@ -449,9 +449,14 @@ function MobileSchedule() {
|
|||
{/* 컨텐츠 영역 */}
|
||||
<div className="mobile-content" ref={isSearchMode && searchTerm ? scrollContainerRef : contentRef}>
|
||||
<div className="px-4 pt-4 pb-4">
|
||||
{isSearchMode && searchTerm ? (
|
||||
// 검색 결과 - 가상 스크롤
|
||||
searchLoading ? (
|
||||
{isSearchMode ? (
|
||||
// 검색 모드
|
||||
!searchTerm ? (
|
||||
// 검색어 입력 전 - 빈 상태
|
||||
<div className="text-center py-8 text-gray-400">
|
||||
검색어를 입력하세요
|
||||
</div>
|
||||
) : searchLoading ? (
|
||||
<div className="flex justify-center py-8">
|
||||
<div className="w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin" />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue