Update FeedItem.tsx

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