Skip to content

Commit

Permalink
Merge pull request #2232 from daostack/cw-2192-message-item-loading-s…
Browse files Browse the repository at this point in the history
…keleton

Message skeleton #2192
  • Loading branch information
pvm-code authored Oct 25, 2023
2 parents 1b4e27b + 9ac1ca4 commit 441d1e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shared/components/Chat/ChatMessage/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,11 @@ export default function ChatMessage({
<ChatMessageLinkify
onInternalLinkClick={handleInternalLinkClick}
>
{messageText.map((text) => text)}
{!messageText.length ? (
<i>Loading...</i>
) : (
messageText.map((text) => text)
)}
</ChatMessageLinkify>
{!isSystemMessage && (
<Time
Expand Down

0 comments on commit 441d1e0

Please sign in to comment.