Prettified Code!

This commit is contained in:
t1enne 2022-07-02 07:13:50 +00:00 committed by GitHub Action
parent 26f9a41508
commit 1bbca87afb
2 changed files with 9 additions and 7 deletions

View file

@ -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;
}

View file

@ -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"