diff options
author | Gabe Kangas <gabek@real-ity.com> | 2022-02-10 15:28:51 -0800 |
---|---|---|
committer | Gabe Kangas <gabek@real-ity.com> | 2022-03-07 16:53:45 -0800 |
commit | e5f40c3758898ededfa3b8efe821ae0bb4a82fb3 (patch) | |
tree | 4044716da1135fd5862376706f0eba22ed817ba9 | |
parent | ddd64f90a14d84209acca767c2d680506234288f (diff) |
Fix hide/show email section
-rw-r--r-- | webroot/js/components/chat/chat-message-view.js | 4 | ||||
-rw-r--r-- | webroot/js/components/notification.js | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/webroot/js/components/chat/chat-message-view.js b/webroot/js/components/chat/chat-message-view.js index a6dcd4029..a6a6aba4f 100644 --- a/webroot/js/components/chat/chat-message-view.js +++ b/webroot/js/components/chat/chat-message-view.js @@ -46,12 +46,10 @@ export default class ChatMessageView extends Component { const { message, isModerator, accessToken } = this.props; const { user, timestamp } = message; - // User is required for this component to render. if (!user) { return null; } - - const { displayName, displayColor, createdAt, isBot } = user; + const { displayName, displayColor, createdAt } = user; const isAuthorModerator = checkIsModerator(message); const isMessageModeratable = diff --git a/webroot/js/components/notification.js b/webroot/js/components/notification.js index 73e14fdb4..ea0ad5903 100644 --- a/webroot/js/components/notification.js +++ b/webroot/js/components/notification.js @@ -143,8 +143,11 @@ export function NotifyModal({ notifications, streamName, accessToken }) { return html` <div class="bg-gray-100 bg-center bg-no-repeat p-6"> - <div class="grid grid-cols-2 gap-10 px-5 py-8"> - <div style=${{ display: emailEnabled ? 'block' : 'none' }}> + <div + style=${{ display: emailEnabled ? 'grid' : 'none' }} + class="grid grid-cols-2 gap-10 px-5 py-8" + > + <div> <h2 class="text-slate-600 text-2xl mb-2 font-semibold"> Email Notifications </h2> |