Browse Source

Prettified Code!

pull/2032/head
t1enne 4 years ago committed by GitHub Action
parent
commit
1bbca87afb
  1. 14
      web/components/chat/ChatContainer/ChatContainer.tsx
  2. 2
      web/components/ui/ModIcon.tsx

14
web/components/chat/ChatContainer/ChatContainer.tsx

@ -30,7 +30,7 @@ export default function ChatContainer(props: Props) { @@ -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) { @@ -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;
}

2
web/components/ui/ModIcon.tsx

@ -11,7 +11,7 @@ export default function ModIcon({ @@ -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"

Loading…
Cancel
Save