mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 14:56:14 +03:00
Prettified Code!
This commit is contained in:
parent
26f9a41508
commit
1bbca87afb
2 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue