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} /> <ExpandedAuthorsList visible={isAuthorsExpanded} authors={authors} />
<Text style={styles.meta}> <Text style={styles.meta}>
<Trans>
<TextLink <TextLink
key={authors[0].href} key={authors[0].href}
style={[pal.text, s.bold]} style={[pal.text, s.bold]}
@@ -230,20 +231,18 @@ let FeedItem = ({
disableMismatchWarning disableMismatchWarning
/> />
{authors.length > 1 ? ( {authors.length > 1 ? (
<> <Trans>
<Text style={[pal.text, s.mr5, s.ml5]}> <Text style={[pal.text]}> and </Text>
{' '}
<Trans>and</Trans>{' '}
</Text>
<Text style={[pal.text, s.bold]}> <Text style={[pal.text, s.bold]}>
{plural(authors.length - 1, { {plural(authors.length - 1, {
one: `${formattedCount} other`, one: `${formattedCount} other`,
other: `${formattedCount} others`, other: `${formattedCount} others`,
})} })}
</Text> </Text>
</> </Trans>
) : undefined} ) : undefined}
<Text style={[pal.text]}> {action}</Text> <Text style={[pal.text]}> {action}</Text>
</Trans>
<TimeElapsed timestamp={item.notification.indexedAt}> <TimeElapsed timestamp={item.notification.indexedAt}>
{({timeElapsed}) => ( {({timeElapsed}) => (
<Text <Text