diff --git a/src/screens/PostThread/components/ReadMore.tsx b/src/screens/PostThread/components/ThreadItemReadMore.tsx similarity index 96% rename from src/screens/PostThread/components/ReadMore.tsx rename to src/screens/PostThread/components/ThreadItemReadMore.tsx index 3e9688f779..1c510f15f7 100644 --- a/src/screens/PostThread/components/ReadMore.tsx +++ b/src/screens/PostThread/components/ThreadItemReadMore.tsx @@ -1,3 +1,4 @@ +import {memo} from 'react' import {View} from 'react-native' import {msg, Plural, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -17,7 +18,7 @@ import {CirclePlus_Stroke2_Corner0_Rounded as CirclePlus} from '#/components/ico import {Link} from '#/components/Link' import {Text} from '#/components/Typography' -export function ReadMore({ +export const ThreadItemReadMore = memo(function ThreadItemReadMore({ item, view, }: { @@ -95,4 +96,4 @@ export function ReadMore({ ) -} +}) diff --git a/src/screens/PostThread/index.tsx b/src/screens/PostThread/index.tsx index f7628b5792..c95f0c44b8 100644 --- a/src/screens/PostThread/index.tsx +++ b/src/screens/PostThread/index.tsx @@ -14,7 +14,6 @@ import {PostThreadComposePrompt} from '#/view/com/post-thread/PostThreadComposeP import {PostThreadShowHiddenReplies} from '#/view/com/post-thread/PostThreadShowHiddenReplies' import {List, type ListMethods} from '#/view/com/util/List' import {HeaderDropdown} from '#/screens/PostThread/components/HeaderDropdown' -import {ReadMore} from '#/screens/PostThread/components/ReadMore' import { ThreadAnchor, ThreadAnchorSkeleton, @@ -24,6 +23,7 @@ import { ThreadItemPostSkeleton, } from '#/screens/PostThread/components/ThreadItemPost' import {ThreadItemPostTombstone} from '#/screens/PostThread/components/ThreadItemPostTombstone' +import {ThreadItemReadMore} from '#/screens/PostThread/components/ThreadItemReadMore' import {ThreadItemTreePost} from '#/screens/PostThread/components/ThreadItemTreePost' import {useBreakpoints, web} from '#/alf' import * as Layout from '#/components/Layout' @@ -266,7 +266,7 @@ export function Inner({uri}: {uri: string | undefined}) { } } else if (item.type === 'readMore') { return ( -