fix: correct TypeScript types in Debug component

Fixed type error in Debug.tsx:
- Changed highlightVisibility from string to proper HighlightVisibility object
- Used 'support' prop instead of invalid 'children' prop for ThreePaneLayout
- Set showSupport={true} to properly render debug content

All linting and type checks now pass.
This commit is contained in:
Gigi
2025-10-17 22:19:09 +02:00
parent 327d65a128
commit 56b3100c8e

View File

@@ -711,6 +711,7 @@ const Debug: React.FC<DebugProps> = ({
isHighlightsCollapsed={true}
isSidebarOpen={false}
showSettings={false}
showSupport={true}
bookmarks={bookmarks}
bookmarksLoading={bookmarksLoading}
viewMode={viewMode}
@@ -732,7 +733,7 @@ const Debug: React.FC<DebugProps> = ({
classifiedHighlights={[]}
showHighlights={false}
selectedHighlightId={undefined}
highlightVisibility="all"
highlightVisibility={{ nostrverse: true, friends: true, mine: true }}
onHighlightClick={() => {}}
onTextSelection={() => {}}
onClearSelection={() => {}}
@@ -753,9 +754,8 @@ const Debug: React.FC<DebugProps> = ({
toastMessage={undefined}
toastType={undefined}
onClearToast={() => {}}
>
{debugContent}
</ThreePaneLayout>
support={debugContent}
/>
)
}