update all dependencies

This commit is contained in:
Athou
2022-10-12 08:34:52 +02:00
parent 97d290de9d
commit a151646850
7 changed files with 1647 additions and 659 deletions

View File

@@ -30,8 +30,10 @@ const transform: TransformCallback = node => {
const src = node.getAttribute("src") ?? undefined
const alt = node.getAttribute("alt") ?? undefined
const title = node.getAttribute("title") ?? undefined
const width = node.getAttribute("width") ? parseInt(node.getAttribute("width")!, 10) : undefined
const height = node.getAttribute("height") ? parseInt(node.getAttribute("height")!, 10) : undefined
const nodeWidth = node.getAttribute("width")
const nodeHeight = node.getAttribute("height")
const width = nodeWidth ? parseInt(nodeWidth, 10) : undefined
const height = nodeHeight ? parseInt(nodeHeight, 10) : undefined
const placeholderSize = calculatePlaceholderSize({
width,
height,

View File

@@ -243,7 +243,7 @@ export function FeedEntries() {
<div
key={entry.id}
ref={el => {
refs.current[entry.id] = el!
if (el) refs.current[entry.id] = el
}}
>
<FeedEntry

View File

@@ -74,7 +74,7 @@ export function Tree() {
/>
)
const categoryNode = (category: Category, level: number = 0) => {
const categoryNode = (category: Category, level = 0) => {
const unreadCount = categoryUnreadCount(category)
if (unreadCount === 0 && !showRead) return null
@@ -96,7 +96,7 @@ export function Tree() {
)
}
const feedNode = (feed: Subscription, level: number = 0) => {
const feedNode = (feed: Subscription, level = 0) => {
if (feed.unread === 0 && !showRead) return null
return (
@@ -114,7 +114,7 @@ export function Tree() {
)
}
const recursiveCategoryNode = (category: Category, level: number = 0) => (
const recursiveCategoryNode = (category: Category, level = 0) => (
<React.Fragment key={`recursiveCategoryNode-${category.id}`}>
{categoryNode(category, level)}
{category.expanded && category.children.map(c => recursiveCategoryNode(c, level + 1))}