fix(lint): resolve all linting and TypeScript errors

This commit is contained in:
Gigi
2025-10-05 22:12:07 +01:00
parent 4f8bc0c641
commit ce2ccd54b3
3 changed files with 2 additions and 6 deletions

View File

@@ -64,8 +64,6 @@ export const BookmarkList: React.FC<BookmarkListProps> = ({
<SidebarHeader
onToggleCollapse={onToggleCollapse}
onLogout={onLogout}
viewMode={viewMode}
onViewModeChange={onViewModeChange}
onOpenSettings={onOpenSettings}
onRefresh={onRefresh}
isRefreshing={isRefreshing}

View File

@@ -75,8 +75,6 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
return sourceHtml
}, [html, renderedHtml, markdown, relevantHighlights, showUnderlines, highlightStyle])
// Check if we need to wait for HTML conversion
const needsHtmlConversion = markdown && !renderedHtml
// Attach click handlers to highlight marks
useEffect(() => {
@@ -191,7 +189,7 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
<div
ref={contentRef}
className="reader-html"
dangerouslySetInnerHTML={{ __html: finalHtml || html }}
dangerouslySetInnerHTML={{ __html: finalHtml || html || '' }}
/>
)
) : (