Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions src/components/rolling-paper-list/MessageList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,11 @@ const MessageList = ({ recipientId, isEditPage = false }) => {
/>
);
})}

<div ref={observerRef} className="h-2" />
{isFetching && (
<div className="p-2 text-center text-gray-900">
πŸ“ 둀링페이퍼 λ©”μ‹œμ§€λ₯Ό λΆˆλŸ¬μ˜€λŠ” 쀑...
</div>
)}
{isFetching && <MessageCardSkeleton />}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

ν˜„μž¬ λ‹€μŒ νŽ˜μ΄μ§€μ˜ λ©”μ‹œμ§€λ₯Ό 뢈러올 λ•Œ ν•˜λ‚˜μ˜ μŠ€μΌˆλ ˆν†€ UI만 ν‘œμ‹œν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. νŽ˜μ΄μ§€λ‹Ή μ—¬λŸ¬ 개의 λ©”μ‹œμ§€λ₯Ό λΆˆλŸ¬μ˜€λŠ” μƒν™©μ—μ„œ λ‘œλ”© 쀑에 μ—¬λŸ¬ 개의 μŠ€μΌˆλ ˆν†€ UIλ₯Ό 보여주면 μ‚¬μš©μž κ²½ν—˜μ„ 더 λΆ€λ“œλŸ½κ²Œ λ§Œλ“€ 수 μžˆμŠ΅λ‹ˆλ‹€.

초기 λ‘œλ”©μ— μ‚¬μš©λ˜λŠ” MESSAGE_LIST_SKELETON_ARRAYλ₯Ό μž¬μ‚¬μš©ν•˜μ—¬ 3개의 μŠ€μΌˆλ ˆν†€μ„ ν‘œμ‹œν•˜λŠ” 것을 μ œμ•ˆν•©λ‹ˆλ‹€. μ΄λ ‡κ²Œ ν•˜λ©΄ λ‘œλ”© ν›„ μ½˜ν…μΈ κ°€ λ‚˜νƒ€λ‚  λ•Œ λ°œμƒν•˜λŠ” λ ˆμ΄μ•„μ›ƒ 변경을 쀄이고 더 λ‚˜μ€ μ‹œκ°μ  ν”Όλ“œλ°±μ„ μ œκ³΅ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

        {isFetching &&
          MESSAGE_LIST_SKELETON_ARRAY.map((_, index) => (
            <MessageCardSkeleton key={index} />
          ))}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

λͺ‡ κ°œκ°€ λ‘œλ“œλ μ§€ μ •ν•΄μ§€μ§€ μ•Šμ•„μ„œ 빈 곡간에 ν•œ 개만 μΆ”κ°€ν•˜μ˜€μŠ΅λ‹ˆλ‹€.

</div>

<div ref={observerRef} className="h-2" />

{isOpenModal && selectedMessage && (
<Modal
isOpen={isOpenModal}
Expand Down