Skip to content

Commit

Permalink
[fix]: change port, chatRooms refact
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoryJu committed Aug 30, 2024
1 parent 6783abd commit f5c790a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev": "vite --port 8000",
"build": "./revision.sh && tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
Expand Down
8 changes: 5 additions & 3 deletions src/pages/Chat/ChatRooms/ChatRooms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ const ChatRooms = () => {
}
chatInfo={chatInfo}
/>
<ChatItemBase.UnViewCount
unViewedMsgCount={chatInfo.unViewedMsgCount}
/>
{chatInfo?.unViewedMsgCount > 0 && (
<ChatItemBase.UnViewCount
unViewedMsgCount={chatInfo.unViewedMsgCount}
/>
)}
</ChatItemBase>
))}
</div>
Expand Down

0 comments on commit f5c790a

Please sign in to comment.