Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Prettified Code!

t1enne1ece7994b9b3
diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsx
index a3c9b9274e..54699bfc13 100644
--- a/web/components/chat/ChatContainer/ChatContainer.tsx
+++ b/web/components/chat/ChatContainer/ChatContainer.tsx
@@ -30,7 +30,7 @@ export default function ChatContainer(props: Props) {
return (
<div className={s.nameChangeView}>
- <div style={{ marginRight: 5, height: 'max-content', margin: 'auto 5px auto 0'}}>
+ <div style={{ marginRight: 5, height: 'max-content', margin: 'auto 5px auto 0' }}>
<EditFilled />
</div>
<div className={s.nameChangeText}>
@@ -109,9 +109,11 @@ export default function ChatContainer(props: Props) {
}
function isSameUserAsLast(messages: ChatMessage[], index: number) {
- const message = messages[index]
- const { user: { id }} = message
- const lastMessage = messages[index - 1]
-
- return id === lastMessage?.user.id
+ const message = messages[index];
+ const {
+ user: { id },
+ } = message;
+ const lastMessage = messages[index - 1];
+
+ return id === lastMessage?.user.id;
}
diff --git a/web/components/ui/ModIcon.tsx b/web/components/ui/ModIcon.tsx
index f0b2ed0120..2cacd2d3e2 100644
--- a/web/components/ui/ModIcon.tsx
+++ b/web/components/ui/ModIcon.tsx
@@ -11,7 +11,7 @@ export default function ModIcon({
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
- <title>This user has moderation rights</title>
+ <title>This user has moderation rights</title>
<path
strokeLinecap="round"
strokeLinejoin="round"