diff --git a/src/components/Chat/ChatContent/ChatContent.tsx b/src/components/Chat/ChatContent/ChatContent.tsx index aea9de5..e7e96ca 100644 --- a/src/components/Chat/ChatContent/ChatContent.tsx +++ b/src/components/Chat/ChatContent/ChatContent.tsx @@ -66,7 +66,7 @@ const ChatContent = () => { Submit -
+ diff --git a/src/components/Chat/ChatContent/ScrollToBottomButton.tsx b/src/components/Chat/ChatContent/ScrollToBottomButton.tsx index 0318c03..976c005 100644 --- a/src/components/Chat/ChatContent/ScrollToBottomButton.tsx +++ b/src/components/Chat/ChatContent/ScrollToBottomButton.tsx @@ -1,13 +1,17 @@ import React from 'react'; -import { useScrollToBottom } from 'react-scroll-to-bottom'; +import { useAtBottom, useScrollToBottom } from 'react-scroll-to-bottom'; import DownArrow from '@icon/DownArrow'; const ScrollToBottomButton = () => { const scrollToBottom = useScrollToBottom(); + const [atBottom] = useAtBottom(); + return (