Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Jan 11, 2025
1 parent c0f0b4b commit b1dfbc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/chatBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ export default function ChatBox({ ws, open, onToggle, enabled, myId, inGame, min

return (
<div className={`chatboxParent ${enabled ? 'enabled' : ''} ${notGuestChatDisabled ? 'guest' : ''}`}>
<button className={`chatboxBtn ${open ? 'open' : ''} ${miniMapShown ? 'minimap' : ''}`} style={{ fontSize: '16px', fontWeight: 'bold', color: 'white', background: 'green', border: 'none', borderRadius: '5px', padding: '10px 20px', cursor: 'pointer' }} onClick={onToggle}>
<button
style={{ display: 'none' }}
className={`chatboxBtn ${open ? 'open' : ''} ${miniMapShown ? 'minimap' : ''}`} style={{ fontSize: '16px', fontWeight: 'bold', color: 'white', background: 'green', border: 'none', borderRadius: '5px', padding: '10px 20px', cursor: 'pointer' }} onClick={onToggle}>
{open ? <FaXmark onClick={onToggle} /> : `${text("chat")}${unreadCount > 0 ? ` (${unreadCount})` : ''}`}
</button>
<div className={`chatbox ${open ? 'open' : ''}`}>
Expand Down

0 comments on commit b1dfbc7

Please sign in to comment.