Update FeedItem.tsx

This commit is contained in:
Minseo Lee
2024-05-08 13:42:37 +09:00
parent 56f713077f
commit bc5ea62225
+5 -6
View File
@@ -220,6 +220,7 @@ let FeedItem = ({
/>
<ExpandedAuthorsList visible={isAuthorsExpanded} authors={authors} />
<Text style={styles.meta}>
<Trans>
<TextLink
key={authors[0].href}
style={[pal.text, s.bold]}
@@ -230,20 +231,18 @@ let FeedItem = ({
disableMismatchWarning
/>
{authors.length > 1 ? (
<>
<Text style={[pal.text, s.mr5, s.ml5]}>
{' '}
<Trans>and</Trans>{' '}
</Text>
<Trans>
<Text style={[pal.text]}> and </Text>
<Text style={[pal.text, s.bold]}>
{plural(authors.length - 1, {
one: `${formattedCount} other`,
other: `${formattedCount} others`,
})}
</Text>
</>
</Trans>
) : undefined}
<Text style={[pal.text]}> {action}</Text>
</Trans>
<TimeElapsed timestamp={item.notification.indexedAt}>
{({timeElapsed}) => (
<Text