From dad9e0d16b834a21f1282de505775bcb24a5de37 Mon Sep 17 00:00:00 2001 From: gabek Date: Thu, 21 Apr 2022 05:21:35 +0000 Subject: [PATCH] Prettified Code! --- webroot/js/app.js | 10 +- webroot/js/components/chat/chat-menu.js | 122 +++++++++++-------- webroot/js/components/chat/username.js | 12 +- webroot/js/components/icons/CaretDownIcon.js | 23 ++-- webroot/js/components/icons/ChatIcon.js | 13 +- webroot/js/components/icons/CheckIcon.js | 22 ++-- webroot/js/components/icons/CloseIcon.js | 22 ++-- webroot/js/components/icons/EditIcon.js | 16 +-- webroot/js/components/icons/UserIcon.js | 1 - webroot/js/components/icons/index.js | 12 +- 10 files changed, 150 insertions(+), 103 deletions(-) diff --git a/webroot/js/app.js b/webroot/js/app.js index 992c5e478..09dbbb641 100644 --- a/webroot/js/app.js +++ b/webroot/js/app.js @@ -10,7 +10,7 @@ import UsernameForm from './components/chat/username.js'; import VideoPoster from './components/video-poster.js'; import Followers from './components/federation/followers.js'; import Chat from './components/chat/chat.js'; -import { ChatMenu } from './components/chat/chat-menu.js' +import { ChatMenu } from './components/chat/chat-menu.js'; import Websocket, { CALLBACKS, SOCKET_MESSAGE_TYPES, @@ -945,7 +945,13 @@ export default class App extends Component { id="user-options-container" class="flex flex-row justify-end items-center flex-no-wrap" > --> - <${ChatMenu} username=${username} isModerator=${false} onUsernameChange=${this.handleUsernameChange} onFocus=${this.handleFormFocus} onBlur=${this.handleFormBlur} chatDisabled=${chatDisabled} noVideoContent=${noVideoContent} handleChatPanelToggle=${this.handleChatPanelToggle}> + <${ChatMenu} username=${username} isModerator=${false} onUsernameChange=${ + this.handleUsernameChange + } onFocus=${this.handleFormFocus} onBlur=${ + this.handleFormBlur + } chatDisabled=${chatDisabled} noVideoContent=${noVideoContent} handleChatPanelToggle=${ + this.handleChatPanelToggle + }>