mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 09:27:23 +00:00
eslint fix
This commit is contained in:
parent
1e1614706a
commit
1e0b16361f
10 changed files with 25 additions and 23 deletions
|
|
@ -57,7 +57,7 @@ export default function ({ inbox, currentWindow }) {
|
|||
const { incoming, clear } =
|
||||
parseInbox(inbox, currentWindow)
|
||||
|
||||
setMessages(clear
|
||||
setMessages(messages => clear
|
||||
? incoming
|
||||
: messages.concat(incoming))
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ export default function ({ inbox, currentWindow }) {
|
|||
? lastInput.offsetTop
|
||||
: textBufferEl.current.scrollHeight * 2
|
||||
}, 0)
|
||||
}, [inbox])
|
||||
}, [currentWindow, inbox])
|
||||
|
||||
const classes = [
|
||||
isFakeStatus(currentWindow)
|
||||
|
|
@ -85,7 +85,7 @@ export default function ({ inbox, currentWindow }) {
|
|||
tabindex='0'
|
||||
ref={textBufferEl}
|
||||
className={classes}>
|
||||
{messages.map(TextMessage)}
|
||||
{messages.map(TextMessage)}
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue