mirror of
https://github.com/dergigi/boris.git
synced 2026-01-06 16:34:45 +01:00
fix(lint): resolve all linting and TypeScript errors
This commit is contained in:
@@ -126,7 +126,7 @@ function App() {
|
||||
relayPool={relayPool}
|
||||
onLogout={() => {
|
||||
if (accountManager) {
|
||||
accountManager.setActive(null)
|
||||
accountManager.setActive(undefined as never)
|
||||
localStorage.removeItem('active')
|
||||
console.log('Logged out')
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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 || '' }}
|
||||
/>
|
||||
)
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user