Add ESLint & Run it against the system (#4470)

This commit is contained in:
Zach H 2021-11-13 14:49:06 -05:00 committed by ZeldaZach
parent 43eee6b32e
commit f789e02096
106 changed files with 1235 additions and 20242 deletions

View file

@ -1,11 +1,11 @@
import React, { useEffect, useRef } from "react";
import React, { useEffect, useRef } from 'react';
const ScrollToBottomOnChanges = ({ content, changes }) => {
const messagesEndRef = useRef(null);
// @TODO (2)
const scrollToBottom = () => {
messagesEndRef.current.scrollIntoView({ behavior: "smooth" })
messagesEndRef.current.scrollIntoView({ behavior: 'smooth' })
}
useEffect(scrollToBottom, [changes]);
@ -22,4 +22,4 @@ const ScrollToBottomOnChanges = ({ content, changes }) => {
)
}
export default ScrollToBottomOnChanges;
export default ScrollToBottomOnChanges;