mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Make sure we filter origin names on library cards
This commit is contained in:
parent
91c0271ea3
commit
5a3d0698bf
2 changed files with 2 additions and 10 deletions
|
|
@ -57,9 +57,7 @@ export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element {
|
|||
const [isHovered, setIsHovered] = useState(false)
|
||||
const [menuOpen, setMenuOpen] = useState(false)
|
||||
|
||||
const originText =
|
||||
props.item.siteName ||
|
||||
siteName(props.item.originalArticleUrl, props.item.url)
|
||||
const originText = siteName(props.item.originalArticleUrl, props.item.url)
|
||||
|
||||
return (
|
||||
<VStack
|
||||
|
|
|
|||
|
|
@ -20,13 +20,7 @@ export function LibraryListCard(props: LinkedItemCardProps): JSX.Element {
|
|||
const [isHovered, setIsHovered] = useState(false)
|
||||
const [menuOpen, setMenuOpen] = useState(false)
|
||||
|
||||
const originText =
|
||||
props.item.siteName ||
|
||||
siteName(props.item.originalArticleUrl, props.item.url)
|
||||
|
||||
const highlightCount = useMemo(() => {
|
||||
return props.item.highlights?.length ?? 0
|
||||
}, [props.item.highlights])
|
||||
const originText = siteName(props.item.originalArticleUrl, props.item.url)
|
||||
|
||||
return (
|
||||
<VStack
|
||||
|
|
|
|||
Loading…
Reference in a new issue