Update FeedItem.tsx

This commit is contained in:
Minseo Lee
2024-07-26 15:45:38 +09:00
parent 11ef3647de
commit a1e99a031a
+13 -14
View File
@@ -205,9 +205,9 @@ let FeedItem = ({
msg`${a11yAuthor} and ${plural(authors.length - 1, { msg`${a11yAuthor} and ${plural(authors.length - 1, {
one: `${formattedCount} other`, one: `${formattedCount} other`,
other: `${formattedCount} others`, other: `${formattedCount} others`,
})} liked your post · ${niceTimestamp}`, })} liked your post`,
) )
: _(msg`${a11yAuthor} liked your post · ${niceTimestamp}`) : _(msg`${a11yAuthor} liked your post`)
action = action =
authors.length > 1 ? ( authors.length > 1 ? (
<Trans> <Trans>
@@ -231,9 +231,9 @@ let FeedItem = ({
msg`${a11yAuthor} and ${plural(authors.length - 1, { msg`${a11yAuthor} and ${plural(authors.length - 1, {
one: `${formattedCount} other`, one: `${formattedCount} other`,
other: `${formattedCount} others`, other: `${formattedCount} others`,
})} reposted your post · ${niceTimestamp}`, })} reposted your post`,
) )
: _(msg`${a11yAuthor} reposted your post · ${niceTimestamp}`) : _(msg`${a11yAuthor} reposted your post`)
action = action =
authors.length > 1 ? ( authors.length > 1 ? (
<Trans> <Trans>
@@ -262,9 +262,9 @@ let FeedItem = ({
msg`${a11yAuthor} and ${plural(authors.length - 1, { msg`${a11yAuthor} and ${plural(authors.length - 1, {
one: `${formattedCount} other`, one: `${formattedCount} other`,
other: `${formattedCount} others`, other: `${formattedCount} others`,
})} followed you back · ${niceTimestamp}`, })} followed you back`,
) )
: _(msg`${a11yAuthor} followed you back · ${niceTimestamp}`) : _(msg`${a11yAuthor} followed you back`)
action = action =
authors.length > 1 ? ( authors.length > 1 ? (
<Trans> <Trans>
@@ -288,9 +288,9 @@ let FeedItem = ({
msg`${a11yAuthor} and ${plural(authors.length - 1, { msg`${a11yAuthor} and ${plural(authors.length - 1, {
one: `${formattedCount} other`, one: `${formattedCount} other`,
other: `${formattedCount} others`, other: `${formattedCount} others`,
})} followed you · ${niceTimestamp}`, })} followed you`,
) )
: _(msg`${a11yAuthor} followed you · ${niceTimestamp}`) : _(msg`${a11yAuthor} followed you`)
action = action =
authors.length > 1 ? ( authors.length > 1 ? (
<Trans> <Trans>
@@ -316,9 +316,9 @@ let FeedItem = ({
msg`${a11yAuthor} and ${plural(authors.length - 1, { msg`${a11yAuthor} and ${plural(authors.length - 1, {
one: `${formattedCount} other`, one: `${formattedCount} other`,
other: `${formattedCount} others`, other: `${formattedCount} others`,
})} liked your custom feed · ${niceTimestamp}`, })} liked your custom feed`,
) )
: _(msg`${a11yAuthor} liked your custom feed · ${niceTimestamp}`) : _(msg`${a11yAuthor} liked your custom feed`)
action = action =
authors.length > 1 ? ( authors.length > 1 ? (
<Trans> <Trans>
@@ -342,11 +342,9 @@ let FeedItem = ({
msg`${a11yAuthor} and ${plural(authors.length - 1, { msg`${a11yAuthor} and ${plural(authors.length - 1, {
one: `${formattedCount} other`, one: `${formattedCount} other`,
other: `${formattedCount} others`, other: `${formattedCount} others`,
})} signed up with your starter pack · ${niceTimestamp}`, })} signed up with your starter pack`,
)
: _(
msg`${a11yAuthor} signed up with your starter pack · ${niceTimestamp}`,
) )
: _(msg`${a11yAuthor} signed up with your starter pack`)
action = action =
authors.length > 1 ? ( authors.length > 1 ? (
<Trans> <Trans>
@@ -371,6 +369,7 @@ let FeedItem = ({
} else { } else {
return null return null
} }
a11yLabel += ` · ${niceTimestamp}`
return ( return (
<Link <Link