Skip to content

Commit

Permalink
add leave chat button to bottom of chat room info container
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-che committed Dec 5, 2023
1 parent 1841bc6 commit e8d3ed1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions client/components/ChatRoomInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "../styles/ChatRoomInfo.css"

import LeaveChatButton from "./LeaveChatButton";
import { useSocket } from "@/context/socket.context"

const ChatRoomInfo = () => {
Expand All @@ -20,6 +21,7 @@ const ChatRoomInfo = () => {
<div className="user-list">
{usersConnected?.map((user) => (<p className="user-connected">{user}</p>))}
</div>
<LeaveChatButton />
</div>
);
}
Expand Down
1 change: 0 additions & 1 deletion client/styles/LeaveChatButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
display: flex;
position: absolute;
bottom: 0px;
/* background-color: aqua; */
margin-left: 30px;
}

Expand Down

0 comments on commit e8d3ed1

Please sign in to comment.