Update FeedItem.tsx
This commit is contained in:
@@ -84,7 +84,7 @@ let FeedItem = ({
|
|||||||
}): React.ReactNode => {
|
}): React.ReactNode => {
|
||||||
const queryClient = useQueryClient()
|
const queryClient = useQueryClient()
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
const {_} = useLingui()
|
const {_, i18n} = useLingui()
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const [isAuthorsExpanded, setAuthorsExpanded] = useState<boolean>(false)
|
const [isAuthorsExpanded, setAuthorsExpanded] = useState<boolean>(false)
|
||||||
const itemHref = useMemo(() => {
|
const itemHref = useMemo(() => {
|
||||||
@@ -169,11 +169,11 @@ let FeedItem = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const formattedCount =
|
const formattedCount =
|
||||||
authors.length > 1 ? formatCount(authors.length - 1) : ''
|
authors.length > 1 ? formatCount(i18n, authors.length - 1) : ''
|
||||||
const firstAuthorName = sanitizeDisplayName(
|
const firstAuthorName = sanitizeDisplayName(
|
||||||
authors[0].profile.displayName || authors[0].profile.handle,
|
authors[0].profile.displayName || authors[0].profile.handle,
|
||||||
)
|
)
|
||||||
const niceTimestamp = niceDate(item.notification.indexedAt)
|
const niceTimestamp = niceDate(i18n, item.notification.indexedAt)
|
||||||
|
|
||||||
let a11yAuthor = firstAuthorName
|
let a11yAuthor = firstAuthorName
|
||||||
let author = (
|
let author = (
|
||||||
|
|||||||
Reference in New Issue
Block a user