diff --git a/lib/hooks/inline-sidebar-text.react.js b/lib/hooks/inline-engagement-text.react.js rename from lib/hooks/inline-sidebar-text.react.js rename to lib/hooks/inline-engagement-text.react.js --- a/lib/hooks/inline-sidebar-text.react.js +++ b/lib/hooks/inline-engagement-text.react.js @@ -4,7 +4,7 @@ import type { ThreadInfo } from '../types/thread-types'; -function useInlineSidebarText( +function useInlineEngagementText( threadInfo: ThreadInfo, ): { repliesText: string, @@ -22,4 +22,4 @@ ); } -export default useInlineSidebarText; +export default useInlineEngagementText; diff --git a/native/chat/inline-sidebar.react.js b/native/chat/inline-sidebar.react.js --- a/native/chat/inline-sidebar.react.js +++ b/native/chat/inline-sidebar.react.js @@ -3,7 +3,7 @@ import * as React from 'react'; import { Text, View } from 'react-native'; -import useInlineSidebarText from 'lib/hooks/inline-sidebar-text.react'; +import useInlineEngagementText from 'lib/hooks/inline-engagement-text.react'; import type { ThreadInfo } from 'lib/types/thread-types'; import Button from '../components/button.react'; @@ -17,7 +17,7 @@ }; function InlineSidebar(props: Props): React.Node { const { threadInfo } = props; - const { repliesText } = useInlineSidebarText(threadInfo); + const { repliesText } = useInlineEngagementText(threadInfo); const navigateToThread = useNavigateToThread(); const onPress = React.useCallback(() => { diff --git a/web/chat/inline-sidebar.react.js b/web/chat/inline-sidebar.react.js --- a/web/chat/inline-sidebar.react.js +++ b/web/chat/inline-sidebar.react.js @@ -2,7 +2,7 @@ import classNames from 'classnames'; import * as React from 'react'; -import useInlineSidebarText from 'lib/hooks/inline-sidebar-text.react'; +import useInlineEngagementText from 'lib/hooks/inline-engagement-text.react'; import type { ThreadInfo } from 'lib/types/thread-types'; import { useOnClickThread } from '../selectors/nav-selectors'; @@ -15,7 +15,7 @@ }; function InlineSidebar(props: Props): React.Node { const { threadInfo, position } = props; - const { repliesText } = useInlineSidebarText(threadInfo); + const { repliesText } = useInlineEngagementText(threadInfo); const onClick = useOnClickThread(threadInfo); const containerCls = classNames(css.container, [css[position]]); const replyCls = classNames({ [css.unread]: threadInfo.currentUser.unread });