diff --git a/src/components/timelines/Conversations.tsx b/src/components/timelines/Conversations.tsx index 84e002a8..4a5da0e0 100644 --- a/src/components/timelines/Conversations.tsx +++ b/src/components/timelines/Conversations.tsx @@ -138,13 +138,20 @@ const Conversations: React.FC = props => { return false }, [firstItemIndex, conversations, setConversations, unreadConversations]) + const backToTop = () => { + scrollerRef.current.scrollTo({ + top: 0, + behavior: 'smooth' + }) + } + return (
- + {/** icon **/} = props => { return false }, [firstItemIndex, notifications, setNotifications, unreadNotifications]) + const backToTop = () => { + scrollerRef.current.scrollTo({ + top: 0, + behavior: 'smooth' + }) + } + return (
= props => {
- + {/** icon **/} = props => { return false }, [firstItemIndex, statuses, setStatuses, unreadStatuses]) + const backToTop = () => { + scrollerRef.current.scrollTo({ + top: 0, + behavior: 'smooth' + }) + } + return (
- + {/** icon **/}